运行以下命令如何用pypy创建virtualenv?
virtualenv -p /usr/local/bin/pypy pypy
退出与错误,如
Running virtualenv with interpreter /usr/local/bin/pypy
New pypy executable in pypy/bin/pypy
debug: WARNING: Library path not found, using compiled-in sys.path.
debug: WARNING: 'sys.prefix' will not be set.
debug: WARNING: Make sure the pypy binary is kept inside its tree of files.
debug: WARNING: It is ok to create a symlink to it from somewhere else.
'import site' failed
AttributeError: 'module' object has no attribute 'prefix'
ERROR: The executable pypy/bin/pypy is not functioning
ERROR: It thinks sys.prefix is u'/Users/myname' (should be u'/Users/myname/pypy')
ERROR: virtualenv is not compatible with this system or executable
我与CPython的2.7.3运行Mac OS X 10.8.1(山狮),并用啤酒安装pypy 1.9。 virtualenv中的版本是1.8.4
使用预建pypy二进制的Mac OS X直接从pypy的网站上下载并没有任何区别
我在OS X上遇到了同样的错误,并且与您有相同版本的pypy和virtualenv(也从自制软件中安装了pypy) – hasen