python - how to config pip on osx when installed by brew? -


i install python using brew on mac , add config file in ~/.pip/pip.conf

[global] index-url=http://mirrors.aliyun.com/pypi/simple  [install] trusted-host=http://mirrors.aliyun.com 

but doesn't work. when hit command pip install pil, complains:

collecting pil   repository located @ mirrors.aliyun.com not trusted or secure host , being ignored. if repository available via https recommended use https instead, otherwise may silence warning , allow anyways '--trusted-host mirrors.aliyun.com'.   not find version satisfies requirement pil (from versions: ) no matching distribution found pil 

please advice.

all need mark repository trusted run of pip:

pip install pil --trusted-host mirrors.aliyun.com 

Comments

Popular posts from this blog

c# SetCompatibleTextRenderingDefault must be called before the first -

c++ - Fill runtime data at compile time with templates -

C#.NET Oracle.ManagedDataAccess ConfigSchema.xsd -