1. 安装: pip install pipenv
mac: `brew install pipenv`
2. 使用:
-
创建虚拟环境,指定Python版本----Create a new project using Python 3.7, specifically:
$ pipenv --python 3.7
pipenv --python 3 pipenv --python 3.6 pipenv --python 2.7.14
-
删除项目虚拟环境----Remove project virtualenv (inferred from current directory):
$ pipenv --rm
-
安装包----Install all dependencies for a project (including dev):
pipenv install --dev requests==2.13.0
pipenv install requests==2.13.0
-
创建预发布的lockfile----Create a lockfile containing pre-releases:
$ pipenv lock --pre
-
查看依赖图 Show a graph of your installed dependencies:
$ pipenv graph
-
Check your installed depende