LOWER drink: pipenv basic usage

Access to personal use only, please correct me if wrong also.

Installation pipenv

pip install pipenv

Create a Python environment

本地安装 Python 版本为 3.6.5
进入工程文件里面运行:
pipenv install
pipenv --python 3
pipenv --python 3.6
pipenv --python 3.6.5
pipenv --three

Activation - Exit

pipenv shell
exit

In other source

打开 pipfile 文件,修改 url 属性
douban源,清华源,随意选。
url = "https://pypi.douban.com/simple"
url = "https://pypi.tuna.tsinghua.edu.cn/simple"

Installation package

pipenv install django
pipenv install django==2.2
pipenv install django==2.2 --dev    将版本安装到开发环境中
pipenv uninstall --all              卸载全部包

Other commands

pipenv --where  显示目录信息
pipenv --venv   显示虚拟环境信息
pipenv --py     显示Python解释器信息
pipenv graph    查看目前安装的库及其依赖
pipenv check    检查安全漏洞

Guess you like

Origin www.cnblogs.com/lowkeyao/p/11248944.html