我可以通过 virtualenv/virtualenvwrapper 使用其他 python 实现吗?

Saj*_*uuk 5 python pypy virtualenv virtualenvwrapper python-2.7

经过一段时间的搜索(也许这还不够,但我不认为我在这方面取得了进展),我无法找到有关 virtualenv/virtualenvwrapper 中其他 Python 实现的兼容性的信息。我所说的“其他实现”是指 PyPy、IronPython、Cython、Jython...

例如,我可以使用以下代码为不同的 python 版本创建 virtualenv 。

mkvirtualenv -p /usr/bin/python2.6 new_venv

但是当我尝试通过以下方式为 PyPy 创建 virtualenv 时:

mkvirtualenv -p /usr/bin/pypy new_venv

系统抛出一些错误。

编辑:我正在使用 virtualenvwrapper-win。它抛出

Running virtualenv with interpreter C:\pypy2-v5.8.0-win32\pypy.exe
New pypy executable in C:\Users\fangming.zfm\Envs\test-123\bin\pypy.exe
Installing setuptools, pip, wheel...done.
system cannot find the path specified.
system cannot find the path specified.
system cannot find the path specified.
Run Code Online (Sandbox Code Playgroud)

为什么我们不能这样做?是因为缺乏兴趣,还是技术上不可行?

phd*_*phd 2

对我有用:

$ mktmpenv -p pypy
Running virtualenv with interpreter /usr/bin/pypy
New pypy executable in /home/phd/.virtualenvs/tmp-b29122e40f353f03/bin/pypy
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /home/phd/.virtualenvs/tmp-b29122e40f353f03/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/phd/.virtualenvs/tmp-b29122e40f353f03/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/phd/.virtualenvs/tmp-b29122e40f353f03/bin/preactivate
virtualenvwrapper.user_scripts creating /home/phd/.virtualenvs/tmp-b29122e40f353f03/bin/postactivate
virtualenvwrapper.user_scripts creating /home/phd/.virtualenvs/tmp-b29122e40f353f03/bin/get_env_details
This is a temporary environment. It will be deleted when you run 'deactivate'

$ python --version
Python 2.7.8 (2.4.0+dfsg-3, Dec 20 2014, 13:30:11)
[PyPy 2.4.0 with GCC 4.9.2]
Run Code Online (Sandbox Code Playgroud)

你的错误到底是什么?