我试图按照here说明操作并遇到第一步的问题:
创建名为eb-virt的虚拟环境:
〜$ virtualenv~ / eb-virt
dyn-160-39-133-189:~ me$ cd ~
dyn-160-39-133-189:~ me$ virtualenv ~/eb-virt
Using base prefix '/Users/me/anaconda'
New python executable in /Users/me/eb-virt/bin/python
ERROR: The executable /Users/me/eb-virt/bin/python is not functioning
ERROR: It thinks sys.prefix is '/Users/me' (should be '/Users/me/eb-virt')
ERROR: virtualenv is not compatible with this system or executable
我看到正在使用anaconda包:
which python
/Users/me/anaconda/bin/python
这可能是问题,所以我尝试了:
alias python=/usr/local/bin/python2.7
这给了我两个:
python -V
-bash: /usr/local/bin/python2.7: No such file or directory
和
which python
/Users/me/anaconda/bin/python
我通常使用conda(python的新功能,但似乎运行良好)所以我不确定问题是否存在于conda或其他内容。