栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 软件开发 > 后端开发 > Python

pip install 参数完全解析 pip install -u 是升级安装

Python 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

pip install 参数完全解析 pip install -u 是升级安装

参考:
https://blog.csdn.net/tsq292978891/article/details/111460944

https://pip.pypa.io/en/stable/installation/

pip install 的一些命令

pip install -u 是升级安装
pip install --user 是安装在本用户的目录下
# 这样会将Python 程序包安装到 $HOME/.local 路径下,其中包含三个字文件夹:bin,lib 和 share。

pip install -r 
Install from the given requirements file. This option can be used multiple times. 从给定的需求文件安装。 此选项可以多次使用。(可以嵌套使用)

pip install -i  or pip install --index-url 
指定从某个源安装包,比如pip install xxx -i http://pypi.douban.com/simple --trusted-host pypi.douban.com
Python软件包索引的基本URL(默认为https://pypi.org/simple)。 这应指向符合PEP 503(简单存储库API)的存储库或以相同格式布置的本地目录。(软件包存放的URL地址,需要符合PEP 503协议)


pip install --extra-index-url 

--trusted-host  
比如:--trusted-host	mirrors.aliyun.com,将某个host或者host:port标记为可信赖的,即使它没有有效的HTTPS或任何HTTPS。



pip install --pre 
Include pre-release and development versions. By default, pip only finds stable versions. 查找预发行和正在开发的版本,默认情况下,pip仅查找稳定版本。

# 一个使用例子
pip install --pre xxxx --user -i http://pypi.xxx.cc/hobot-local/simple --extra-index-url=http://mirrors.aliyun.com/pypi/simple/ --trusted-host pypi.xxx.cc --trusted-host mirrors.aliyun.com


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/1008395.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号