如何配置一个pipenv 虚拟环境的项目?

1:创建一个项目名称

mkdir project_test

2:切换到这个项目下面

cd project_test

3: 然后输入pipenv_three 创建虚拟环境

如何配置一个pipenv 虚拟环境的项目?

如何配置一个pipenv 虚拟环境的项目?

 4:**当前项目所在的虚拟环境

pipenv shell

如何配置一个pipenv 虚拟环境的项目?

5:输入 pipenv lock 生成lock文件,pipfile.lock文件如何配置一个pipenv 虚拟环境的项目?

用下面的命令就可以将PipfilePipfile.lock文件里面的包导出为requirements.txt文件

 

如何配置一个pipenv 虚拟环境的项目?

5:然后是用pycharm 打开这个项目,就可以了,这个项目就是虚拟环境下的项目啦