python的虚拟环境使用
D:>python --version
Python 3.8.5
D:>pip install virtualenv
创建虚拟环境projectC
D:>python -m venv python\projectC
进入虚拟环境projectC
D:>cd python\projectC\Scripts
D:\python\projectC\Scripts>activate.bat
(projectC) D:\python\projectC\Scripts>
备注:上面的目录前需要有projectC提示,和后面的目录无关
退出虚拟环境projectC
(projectC) D:\python\projectC\Scripts>deactivate.bat
D:\python\projectC\Scripts>
备注:退出后,目录前的projectC将消失