pipenv
pipenv是python官方推荐的虚拟环境管pip理工具,可以把它当作是virtualenv,pip,pyenv三者的集合工具。
基本使用
-
下载
pip download pipenv --only-binary=:all: --platform win64 --python-version 3.8.8 -d D:\Desktop\pack -i https://mirrors.aliyun.com/pypi/simple/
-
pipenv [ install ]
# 当前目录下创建虚拟环境 pipenv install # 基于python3创建虚拟环境 pipenv install --three # 指定python版本 pipenv install --python 3.8.8
-
pipenv shell
# 进入虚拟环境中的shell D:\Desktop\111>pipenv shell (111-OxoRPRs4) D:\Desktop\111> # 退出当前虚拟环境 exit()
-
pipenv —rm
# 删除当前目录下的虚拟环境 D:\Desktop\111>pipenv --rm Removing virtualenv (C:\Users\yxczk\.virtualenvs\111-OxoRPRs4)...
-
pipenv graph
# 显示当前安装的依赖关系图信息。 (MyPrj-zfmYHQPT) D:\Desktop\MyPrj>pipenv graph openpyxl==3.0.10 - et-xmlfile [required: Any, installed: 1.1.0] pandas==1.5.1 - numpy [required: >=1.20.3, installed: 1.23.4] - python-dateutil [required: >=2.8.1, installed: 2.8.2] - six [required: >=1.5, installed: 1.16.0] - pytz [required: >=2020.1, installed: 2022.6] pyinstaller==5.6.2 - altgraph [required: Any, installed: 0.17.3] - pefile [required: >=2022.5.30, installed: 2022.5.30] - future [required: Any, installed: 0.18.2] - pyinstaller-hooks-contrib [required: >=2021.4, installed: 2022.13] - pywin32-ctypes [required: >=0.2.0, installed: 0.2.0] - setuptools [required: Any, installed: 62.1.0]
posted on 2023-05-27 10:24 chenxiaoyuan 阅读(33) 评论(0) 编辑 收藏 举报