pip install virtualenv
cd my_project virtualenv venv # venv为虚拟环境目录名
virtualenv -p /usr/bin/python3.6 venv
source venv/bin/activate pip install -r requirements.txt