pip 安装包

pip install 包名
pip install 包名==版本号
pip install --index-url 包的来源 包名
pip install -r列表文件

pip 卸载

pip uninstall 包名

pip 查看所有安装的包

pip list 

pip 镜像文件安装

清华大学https://pypi.tuna.tsinghua.edu.cn/simple
阿里云:http://mirrors.aliyun.com/pypi/simple/
中国科技大学 https://pypi.mirrors.ustc.edu.cn/simple/
华中理工大学http://pypi.hustunique.com/
山东理工大学http://pypi.sdutlinux.org/
豆瓣http://pypi.douban.com/simple/
网易http://mirrors.163.com



pip install 安装包名 -i https://pypi.tuna.tsinghua.edu.cn/simple

pip 离线安装包

需要先在有网的环境下载,后转移文件,再在离线环境中安装

下载pip download 包名

安装包(需要下载的文件***.whl)
pip install ***.whl

问题:
1,###.whl is not a valid wheel filename.
文件名改为###-####-###-####-win32.whl

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注