# 安装pipenvpip install pipenv# 安装虚拟环境pipenv install#进入虚拟环境pipenv shell#查看虚拟环境安装目录pipenv --venv#包管理:# 安装pipenv install requests# 卸载pipenv uninstall requests# 升级库pipenv update# 获取本地工程路径pipenv --where# 获取虚拟环境路径pipenv --venv# 检查库的依赖关系,这个非常有用pipenv graph# 检查库的安全性pipenv check# 删除虚拟环境pipenv --rm#退出虚拟环境exit#不进入虚拟环境shell 直接执行python项目pipenv run python 项目1.py#生成requirements.txt方法1:pipenv run pip freeze > requirements.txt方法2:pipenv lock -r --dev > requirements.txt#导入requirements.txtpipenv install -r requirements.txt