windows10 installed virtualenv and create a virtual environment

1. Install virtualenv

pip install virtualenv

2. Check the python interpreter path

where python

3. Create a virtual environment python3

+ win R & lt type cmd press enter, then: 
D: 
CD D: \ VScodeProjects \ PythonProjects \ OPMS 
the virtualenv Venv -p " C: \ the Users \ Test \ AppData \ the Local \ Programs \ the Python \ Python37-32 \ python.exe " 

4. Activate the virtual environment and deactivated

cd D:\VScodeProjects\PythonProjects\opms\venv\Scripts
activate
deactivate.bat

 

Guess you like

Origin www.cnblogs.com/DesignerA/p/11609797.html