运行以下命令
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 (Mountain Lion),并使用 Brew 安装了 pypy 1.9。virtualenv 的版本是 1.8.4
使用直接从 pypy 网站下载的 Mac OS X 的预构建 pypy 二进制文件没有任何区别