window10 create a virtual environment virtualenv

 

Project to create a virtual environment to avoid confusion with the time required for development projects and conflict bag original package, in a virtual environment, you can install the expansion pack, create a separate program for each virtual environment, can ensure the program can only access the virtual environment package. Installed in the system without affecting the global Python interpreter, to ensure cleanliness global interpreter.

 

virtualenv --version # check whether they have installed the tool to create a virtual environment  

 You can use the tool to install pip

pip install virtualenv

 

  Recommended that you create an empty folder to store virtual environments.

virtualenv [OPTIONS] DEST_DIR # view the document and how to use

Creating no other extra package python environment

virtualenv --no-site-packages venv_py

Guess you like

Origin www.cnblogs.com/ambdyx/p/12149354.html