Home >Backend Development >Python Tutorial >python virtual environment configuration and management
1. Download and install python
1. Download python
Enter the website to download: https://www.python.org/downloads/windows /
C:\Users>python Python 3.9.0 (tags/v3.9.0:9cf6752, Oct 5 2020, 15:34:40) [MSC v.1927 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>>exit()
(to return to the drive letter directory)
C:\Users>pip list Package Version ---------- ------- pip 20.2.3 setuptools 49.2.12. Install the virtual environment
C:\Users>pip install virtualenv
2. Download virtualenvwrapper management environment
virtualenvwrapper 是一个 virtualenv 虚拟环境的管理库,这个库可以更加方便的管理所有的虚拟环境
C:\Users***>pip install virtualenvwrapper-win
mkvirtualenv 名称
激活或切换虚拟环境
workon my_env
退出虚拟环境
deactivate
删除虚拟环境
rmvirtualenv 名称
查看系统所有的虚拟环境
lsvirtualenv
推荐:《Python视频教程》
The above is the detailed content of python virtual environment configuration and management. For more information, please follow other related articles on the PHP Chinese website!