我正在尝试关注Miguel Grinberg's flask tutorial,第一步是创建一个虚拟环境。当我尝试这个时,我会遇到错误。我在osx 10.9.5上使用Python 2.7,我的Xcode和命令行工具是最新的。
以下是代码:
$ 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
这里发生了什么?有没有解决这个问题? (我在这个领域非常无知。)提前致谢!