关于使用pipenv管理Python环境


PyPI中的包名称不区分大小写

pipenv install ,创建虚拟环境,如果当前文件夹有pipfile,创建虚拟环境的同时还会下载pipfile配置文件中的包

激活虚拟环境,使用  pipenv shell, 或者pipenv run ...

删除虚拟环境,使用 pipenv --rm

推出虚拟环境,使用 exit

查看当前虚拟环境,使用 pipenv graph,或者 pip list

 当出现提示:

Courtesy Notice: Pipenv found itself running within a virtual environment, so it will automatically use that environment, instead of creating its own for any project. You can set PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that envir
onment and create its own instead. You can set PIPENV_VERBOSITY=-1 to suppress this warning.

只需要在python命令控制台输入:set PIPENV_VERBOSITY=-1即可

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM