【发布时间】:2011-08-19 17:53:55
【问题描述】:
我通过pip 安装了virtualenv 并在创建新环境后出现此错误:
selenium:~ auser$ virtualenv new
New python executable in new/bin/python
ERROR: The executable new/bin/python is not functioning
ERROR: It thinks sys.prefix is u'/System/Library/Frameworks/Python.framework/ Versions/2.6' (should be '/Users/user/new')
ERROR: virtualenv is not compatible with this system or executable
在我的环境中:
PYTHONPATH=/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages
PATH=/System/Library/Frameworks/Python.framework/Versions/2.6/bin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/Library/Frameworks/Python.framework/Versions/2.6/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
我该如何修复这个问题?
谢谢。
【问题讨论】:
-
我正在通过自制软件安装 python 并将路径更改为 /usr/local/lib 复制 python,现在一切正常,谢谢 :)
标签: python macos operating-system virtualenv