pip install 参数完全解析

pip install 参数完全解析

参考:/

pip install 的一些命令pip install -u 是升级安装
pip install --user 是安装在本用户的目录下
# 这样会将Python 程序包安装到 $HOME/.local 路径下,其中包含三个字文件夹:bin,lib 和 share。pip install -r <file>
Install from the given requirements file. This option can be used multiple times. 从给定的需求文件安装。 此选项可以多次使用。(可以嵌套使用)pip install -i <url> or pip install --index-url <url>
指定从某个源安装包,比如pip install xxx -i  --trusted-host pypi.douban
Python软件包索引的基本URL(默认为)。 这应指向符合PEP 503(简单存储库API)的存储库或以相同格式布置的本地目录。(软件包存放的URL地址,需要符合PEP 503协议)pip install --extra-index-url <url>--trusted-host <hostname> 
比如:--trusted-host	mirrors.aliyun,将某个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  --extra-index-url=/ --trusted-host pypi.xxx --trusted-host mirrors.aliyun

发布者:admin,转转请注明出处:http://www.yc00.com/news/1701670895a1136478.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信