Q
Q
Quattro1112020-06-04 04:18:11
Python
Quattro111, 2020-06-04 04:18:11

I can't install libraries on ubuntu, what should I do?

I'm trying to install the python library in a virtual environment on ubuntu, it gives the following error:
5ed849ff185c3700008534.png

pip install django
Collecting django
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/django/

what to do? how to fight?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
D
Dr. Bacon, 2020-06-04
@bacon

1. You need to insert text, not a picture
2. Check what you have with the network, the error clearly indicates this problem
3. If there was text, I would google it for you, since you yourself can’t, maybe the problem is something else.

Q
Quattro111, 2020-06-04
@Quattro111

pip install django
Collecting django
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/django/

I
iddqda, 2020-06-04
@iddqda

It looks like you do not have direct access to the Internet
, if there is a proxy, then specify it in the environment variables (HTTP_PROXY, HTTPS_PROXY) or directly in the pip3 install command:

pip3 install -r requirements --proxy http://10.1.1.1:8080

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question