Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
444 views
in Technique[技术] by (71.8m points)

python - errors while using pip install on windows 10 and Ubuntu 18.04 lts

I'm not new with Python programming, today I tried to install Django using "pip install Django" on my computer. I'm using Python 3.9.1, pip 20.2.3, PyCharm (community) 2020.3.2 . I've tried everything, using pip3, trying to install libraries from pycharm termianl and from the pycharm interpreter configuration, I even format my computer(full foramt and the quick foramt) and nothing helped my. I searched for similar problems here but all of them didn't work. I get this problem over and over again (I tried to set the timeout to 100, and my internet connection is good and fast enough): (in this tryout I've tried to install numpy library, I get the same problem with every library that I tried)

(venv) C:UsersachikPycharmProjectsfirst>pip install numpy WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError(" HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/numpy/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError(" HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/numpy/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError(" HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/numpy/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError(" HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/numpy/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnection Pool(host='pypi.org', port=443): Read timed out. (read timeout=15)")': /simple/numpy/ ERROR: Could not find a version that satisfies the requirement numpy (from versions: none) ERROR: No matching distribution found for numpy

Please help me, I'm about to lose my mind

UPDATE: I formatted my computer and reinstall windows 10, installed python 3.7 and older version of PyCharm and it didn't work. I formatted again my pc and installed Ubuntu 18.04 lts and again I have the same problem. PLEASE help me!

question from:https://stackoverflow.com/questions/65866835/errors-while-using-pip-install-on-windows-10-and-ubuntu-18-04-lts

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I had the same problem. Sometimes it is because of internet connection and sometimes cmd working so slow. If your antifilter is open, close it before executing commands on cmd. And whenever you faced this problem close cmd and run it as admin again... you can install needed packages without using pip as well. For example download a suitable version of numpy and save it on C:PythonToolsscript and run it using cmd.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...