首页 > 编程语言 > 详细

关于使用pipenv管理Python环境

时间:2019-07-07 11:05:49      阅读:310      评论:0      收藏:0      [点我收藏+]

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即可

 

关于使用pipenv管理Python环境

原文:https://www.cnblogs.com/hectora/p/11143758.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!