Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

Virtualenv opens on windows

Shulou Source: shulou.com Published: 2022-06-03 06:05:06 11月23日 Update

Select a file shelf and open cmd

Virtualenv envname # create a virtual environment named envname

Dir # looking at the current directory, you can see that an envname file has been created

Virtualenv-p python2 envname # if you have installed multiple versions of python, such as py2 and py3, you need to specify which one to use to create the virtual environment

Start the virtual environment

Access to virtual environment files

Cd envname

Go to the relevant startup folder

Cd Scripts

Activate # launch the virtual environment

Deactivate # quit the virtual environment

Tags: Environment file name multiple folder version directory shelf select Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Redmi vpn Shulou Tech Info Xiaomi Microsoft