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