Answers for "create venv with specific python version"

1

virtualenv specify python version

virtualenv --python=/usr/bin/python2.6 <path/to/new/virtualenv/>
Posted by: Guest on September-06-2020
1

uses specific version python venv

# Use python version 3.7.3 for tensorflow
pip install virtualenv 
virtualenv -p PYTHONPATH <path/to/new/virtualenv/>
Posted by: Guest on November-23-2020
0

create venv with specific python version

# download & install python 3.9.6
# rename folder conataining python.exe as py_396
D:>cd py_396
D:\py_396>python -m venv .\envs\env1
D:\py_396>cd .\envs\env1\Scripts
D:\py_396\envs\env1\Scripts>activate.bat
(env1) D:\py_396\envs\env1\Scripts>cd..
(env1) D:\py_396\envs\env1>python --version
(env1) D:\py_396\envs\env1>python -m pip install --upgrade pip
(env1) D:\py_396\envs\env1>python -m pip install pandas --no-cache-dir
(env1) D:\py_396\envs\env1>pip list
(env1) D:\py_396\envs\env1>deactivate
D:\py_396\envs\env1>
D:\py_396\envs\env1>cd .\scripts
D:\py_396\envs\env1\Scripts>activate.bat
(env1) D:\py_396\envs\env1\Scripts>deactivate
D:\py_396\envs\env1>exit
Posted by: Guest on August-21-2021
0

start virtualenv with python version

python3 -m venv <myenvname>
Posted by: Guest on April-10-2020

Code answers related to "create venv with specific python version"

Python Answers by Framework

Browse Popular Code Answers by Language