与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
?
答案 0 :(得分:0)
看起来我的python版本(2.7.5)安装了不兼容的pip和virtualenv版本。我做了以下修复
sudo pip unistall pip
sudo easy_install pip
sudo pip install virtualenv
请注意,我是通过easy_install
而不是brew