Can I use another python implementation via virtualenv / virtualenvwrapper?

After some time of searching (maybe this is not enough, but I don’t think I am doing this), I could not find compatibility information for other Python implementations in virtualenv / virtualenvwrapper. By "different implementation" I mean things like PyPy, IronPython, Cython, Jython ...

for example, I can create virtualenv for another version of python using the following code.

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

but when I tried to create virtualenv for PyPy, follow these steps:

mkvirtualenv -p /usr/bin/pypy new_venv

System

causes some error.

EDIT: I am using virtualenvwrapper-win. he throws

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.

why can't we do this? is it due to lack of interest or technically unfeasible?

+4
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]

?

+2

, pypy.exe /bin/, Scripts (, virtualenvwrapper-win ).

(https://github.com/davidmarble/virtualenvwrapper-win/issues/30), .

0

Source: https://habr.com/ru/post/1680289/


All Articles