M
M
Morrowind2021-04-10 22:42:10
ubuntu
Morrowind, 2021-04-10 22:42:10

How to resolve installation error via pip on ubuntu 20.04?

When installing any library via pip, an error occurs:

$ 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("HTTPSConnectionPool(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


Proxy installation works
python.exe-m pip install numpy --proxy= "179.185.199.195:8080"

Disabling ufw doesn't help.

As Google suggests, you need to change some file in ubuntu. But unfortunately no instructions.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Morrowind, 2021-04-11
@hekkaaa

Understood the problem.
Solutions 1.
Contact the networkers and find out the MTU for which they have. Then rewrite the settings in unix.
Example:

ip link set eth0 mtu 1450
ip route add 192.168.1.0/24 dev eth0 advmss 1410

more details about the value here
Solution 2 : (which I used)
Ask the networkers on your side to disable their network bells and whistles (protection from DDoS and other necessary things), or move you to a separate circuit / segment (each has its own bells and whistles inside) where you can safely sit on default settings and communicate with the external network.

K
ky0, 2021-04-10
@ky0

Figure out what's up with your internet. The problem, judging by the error, is purely network / firewall / antivirus.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question