Error reported by PIP install third-party library [How to Solve]

reward :Could not find a version that satisfies the requirement xlrd (from versions: )

No matching distribution found for xlrd

This is because of China’s 32476 problem, it needs to be used faster, like peanuts.

Method 1:

The order reads.

pip install xlrd http://pypi.douban.com/simple/ –trusted-host pypi.douban.com

or

pip3 install xlrd http://pypi.douban.com/simple/ –trusted-host pypi.douban.com

Method 2:

Delay 36831; Time

command: pip –default-timeout=100 install xlrd obey

Method 3:

under the pip installation path, create python file

import os  

ini="""[global] 
index-url = https://pypi.doubanio.com/simple/ 
[install] 
trusted-host=pypi.doubanio.com 
"""  
pippath=os.environ["USERPROFILE"]+"\\pip\\"  

if not os.path.exists(pippath):  
    os.mkdir(pippath)  

with open(pippath+"pip.ini","w+") as f:  
    f.write(ini)  

Run the python file on CMD, and then use the PIP install command to install it, which is very fast

 

Similar Posts: