0
我试图按照Miguel Grinberg's flask tutorial,第一步是创建一个虚拟环境。当我尝试这个时,我得到错误。我在osx 10.9.5上使用Python 2.7,我的Xcode和命令行工具是最新的。virtualenv错误osx 10.9.5
下面的代码:
$ python virtualenv.py flask
Using base prefix '/Applications/Canopy.app/appdata/canopy-1.4.1.1975.macosx-
x86_64/Canopy.app/Contents'
New python executable in flask/bin/python
dyld: Library not loaded: @rpath/Python
Referenced from: /Users/adamkalman/Desktop/microblog/flask/bin/python
Reason: image not found
ERROR: The executable flask/bin/python is not functioning
ERROR: It thinks sys.prefix is u'/Users/adamkalman/Desktop/microblog' (should be
u'/Users/adamkalman/Desktop/microblog/flask')
ERROR: virtualenv is not compatible with this system or executable
这到底是怎么回事?有没有解决这个问题? (我在这个领域非常无知。)提前致谢!
感谢DIRN!这解决了我的问题!我只是用venv代替。 – 2014-10-10 19:16:55