virtualenv的问题

时间:2013-08-08 04:15:18

标签: python python-2.7 virtualenv pip

与virtualenv有点问题。我按照这个tutuorial中的步骤进行了操作:

http://docs.python-guide.org/en/latest/starting/install/osx/

当我运行virtualenv时,我得到:

My-Maco:django-projects auser$ virtualenv test
Creating test/lib/python2.7
Creating test/lib/python2.7/site-packages
Creating test/bin
Copying /usr/bin/python to test/bin
Installing setuptools
python: posix_spawn: /Users/auser/Documents/django-projects/test/bin/python2.7: No such file or directory

它正在将python复制到test/bin,为什么要查找test/bin/python2.7

1 个答案:

答案 0 :(得分:0)

看起来我的python版本(2.7.5)安装了不兼容的pip和virtualenv版本。我做了以下修复

sudo pip unistall pip
sudo easy_install pip
sudo pip install virtualenv

请注意,我是通过easy_install而不是brew

安装了点子