一、安装virtualenv pip3 install virtualenv -i https://pypi.tuna.tsinghua.edu.cn/simple/ 二、创建虚拟环境 cd /home virtualenv venv source /home/venv/bin/activate