Install Python package with proxy
sudo pip install python-magic--proxy=https://your-proxy.com
2.No distributions at all found for AUTOPEP8
Upgrade PIP First:this error may caused by low PIP version (example:1.5.4, command "Pip--version" can show you the Versi On PIP), the latest version of Pip is 9.0.1.
Https://pip.pypa.io/en/stable/installing/is the official link for installing latest PIP.
Here are my BKM (proved by practice):
wget https://bootstrap.pypa.io/get-pip.py
sudo su
Python get-pip.py
Pip install-u Pip--proxy=https://your-proxy.com
Pip install-u AUTOPEP8--proxy=https://your-proxy.com
3.dos2unix
The command tool for changing file style dos to UNIX. (can delete \ r)
4. Change the source to install Python package
sudo pip install sqlalchemy==0.7.10-i https://pypi.douban.com/simple
For Gobal:
$ sudo vim/etc/pip.conf
[Global]
index-url=http://pypi.douban.com/simple/
trusted-host=pypy.douban.com
[Python] Pip Swap and set proxy