簡體   English   中英

linux服務器pip不安裝模塊

[英]linux server pip does not install modules

我的pip -V返回: pip 9.0.1 from /usr/lib/python3/dist-packages (python 3.6)

python3 -V返回: Python 3.6.9

當我嘗試使用 pip 安裝模塊時,出現以下錯誤:

Collecting Django==2.2.1
  Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/django/
  Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/django/
  Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/django/
  Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/django/
  Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ReadTimeoutError("HTTPSConnectionPool(host='pypi.python.org', port=443): Read timed out. (read timeout=15)",)': /simple/django/`

>Could not find a version that satisfies the requirement Django==2.2.1 (from versions: )

>No matching distribution found for Django==2.2.1

我閱讀了類似的問題,並檢查了我沒有設置代理,並且我的防火牆已禁用。

我該怎么辦?

sudo pip install --default-timeout=100 future

如何使用 pip 解決 ReadTimeoutError: HTTPSConnectionPool(host='pypi.python.org', port=443)?

sudo 可能是必要的,也可能不是。 使用 sudo 時要小心。

另: 使用 Pip3 安裝的問題

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM