安装Pipenv
pip install pipenv
出现以下问题,请在环境变量中添加配置
The script virtualenv-clone.exe is installed in 'c:\program files (x86)\python37\Scripts'
which is not on PATH.Consider adding this directory to PATH or, if you prefer to suppress this warning...
检查pipenv是否安装
pipenv --version
创建虚拟环境指定python版本
在创建虚拟环境之前,要建好需要放虚拟环境的文件夹,并通过命令行进入到该文件路径
我的系统是安装的3.7.1,所以选择three,如果你用的2.7,可以把three换成two
pipenv install --three
激活虚拟环境
1.显示激活执行命令
pipenv shell
2.不显示激活执行命令
pipenv run python hello.py
退出虚拟环境
exit