python 虚拟环境
python -m venv venvdemo
cd venvdemo
dir
cd Lib
activate
python
显示环境变量
echo %PATH%
import sys
from pprint import pprint
pprint(sys.path)
虚拟环境安装
pip install django
安装时安装三个
卸载只卸载一个
pip uninstall django
cd Scripts
python
import sys
sys.path
进入虚拟环境的Scripts 激活虚拟环境
pip list
pip freeze > requirements.txt
pip install -r requirements.txt
标签:python,pprint,cd,sys,虚拟环境,pip From: https://www.cnblogs.com/51testing/p/16841578.html