关于使用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即可

猜你喜欢

转载自www.cnblogs.com/hectora/p/11143758.html