全局安装包
pip install virtualenv
pip安装包后,要么制定路径,要么设置环境变量
设置虚拟环境
# 下面二选一 python -m venv <file_name> # python3.3+自带 virtualenv <file_name> # 需要module virtualenv
激活环境变量
source ./<file_name>/bin/active
退出虚拟环境
deactive