2

最近我使用 Mac OSX 安装程序安装了 Python 3.3。之后,我按照How to use pip with Python 3.x 除了 Python 2.x的说明安装了 pip-3.3 ,第二个答案。之后我运行以下命令进行安装virtualenv

sudo pip-3.3 install virtualenv

更新了我的PATH变量,如下所示:

/Library/Frameworks/Python.framework/Versions/3.3/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/share/python:/usr/local/bin:/Library/Frameworks/Python.framework/Versions/2.7/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/git/bin

PYTHONPATH变量如下:

/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/site-packages:/Library/Frameworks/Python.framework/Versions/3.3/bin:/Library/Python/2.7/site-packages:/usr/local/lib/python2.7/site-packages:

但是,当我运行时virtualenv -p /usr/local/bin/python3 py3,我收到以下错误消息

我观察到,在 StackOverflow 上回答的许多帖子和问题中,用法始终是,但在我的情况下,-p /usr/bin/python3没有像python3. /usr/bin/里面有一个/usr/local/bin/。这是奇怪和不正确的吗?

请在这里帮助我。我应该怎么做?我在这里做错了什么?

谢谢,
钦塔克

4

0 回答 0