【发布时间】:2015-02-27 19:24:23
【问题描述】:
我正在使用 Ubuntu 14.4 LTS 实例在 ec2 上建立一个 django 项目。我想使用 python 3 和 django 编写我的代码。我被告知最好的方法是使用 virtualenvwrapper。我试过了:
ubuntu:~$ sudo pip3 install virtualenvwrapper
Successfully uninstalled six
Successfully installed virtualenvwrapper virtualenv virtualenv-clone stevedore argparse pbr six
Cleaning up...
ubuntu:~$ mkvirtualenv env1
mkvirtualenv: command not found
我做错了什么?
编辑:
我按照你的指示,退出并重新登录:
/usr/bin/python: No module named virtualenvwrapper
virtualenvwrapper.sh: There was a problem running the initialization hooks.
If Python could not import the module virtualenvwrapper.hook_loader,
check that virtualenvwrapper has been installed for
VIRTUALENVWRAPPER_PYTHON=/usr/bin/python and that PATH is
set properly.
我怀疑这是因为我正在安装 python3,它不是默认的 python 解释器
【问题讨论】:
标签: python linux ubuntu virtualenv virtualenvwrapper