菜鸟笔记
提升您的技术认知

pip install 参数完全解析-ag真人游戏

参考:https://pip.pypa.io/en/stable/reference/pip_install/

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 
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
网站地图