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

php - How to add and update images or image url in Volusion using Volusion API -

javascript - jQuery UI Splitter/Resizable for unlimited amount of columns -

javascript - IE9 error '$'is not defined -