[英]how to config pip on osx when installed by brew?
I install python using brew
on mac and add a config file in ~/.pip/pip.conf
我在Mac上使用
brew
安装python并在~/.pip/pip.conf
添加配置文件
[global]
index-url=http://mirrors.aliyun.com/pypi/simple
[install]
trusted-host=http://mirrors.aliyun.com
But it doesn't work. 但这是行不通的。 When hit the command
pip install PIL
, it complains: 当打命令
pip install PIL
,它抱怨:
Collecting PIL
The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS it is recommended to use HTTPS instead, otherwise you may silence this warning and allow it anyways with '--trusted-host mirrors.aliyun.com'.
Could not find a version that satisfies the requirement PIL (from versions: )
No matching distribution found for PIL
Please advice. 请指教。
您需要做的就是将此运行pip标记为受信任的存储库:
pip install PIL --trusted-host mirrors.aliyun.com
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.