python - How to create virtual env with python3 -


i using python 2.7 + virtualenv version 1.10.1 running myproject projects. due other projects requirement have work other version of python(python 3.5) , django 1.9. have installed python in user directory. have dowloaded , installed virtualenv( version - 15.1.0) user directory. whenever trying create virtual env getting below error

python virtualenv/virtualenv.py myproject 

using base prefix '/home/myuser/python3' new python executable in /home/mount/myuser/project_python3/myproject/bin/python error: executable /home/mount/myuser/project_python3/myproject/bin/python not functioning error: thinks sys.prefix '/home/myuser/python3' (should '/home/mount/myuser/project_python3/myproject') error: virtualenv not compatible system or executable 

can tell doing wrong

in python 3.6+, pyvenv module deprecated. use following one-liner instead:

python3 -m venv <myenvname> 

this recommended way create virtual environments python community.


Comments

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -