AWS弹性beanstalk flask虚拟环境之后的问题

时间:2017-02-09 09:26:55

标签: python amazon-web-services virtualenv anaconda conda

我试图按照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或其他内容。

0 个答案:

没有答案