pip3 не работает при установке чего-либо, а для выброса pip требуется TLS / SSL, ssl Python недоступен - PullRequest
0 голосов
/ 19 апреля 2020

Я пытаюсь установить модули SOMME в моем python3 .8 env на моем онлайн-сервере (Ubuntu 16.04). проблема в том, что я не могу ничего установить, потому что pip3 выдает мне ту же ошибку каждый раз, когда я пытался установить

error1:

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Collecting asgiref==3.2.3 (from -r requirements.txt (line 1)) WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/asgiref/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/asgiref/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/asgiref/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/asgiref/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError("Can't connect to HTTPS URL because the SSL module is not available.")': /simple/asgiref/ Could not fetch URL https://pypi.org/simple/asgiref/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/asgiref/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping ERROR: Could not find a version that satisfies the requirement asgiref==3.2.3 (from -r requirements.txt (line 1)) (from versions: none) ERROR: No matching distribution found for asgiref==3.2.3 (from -r requirements.txt (line 1)) WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available. Could not fetch URL https://pypi.org/simple/pip/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

я пытался узнать, у моего пипа есть некоторые проблемы, поэтому я попробовал это:

(env) user:~/test/djangoallauth# pip3 -V
pip 19.2.3 from /root/test/env/lib/python3.8/site-packages/pip (python 3.8)

и без evn это дает мне это:

error2:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/__init__.py", line 22, in <module>
    from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning
ImportError: cannot import name 'DependencyWarning'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip import main
  File "/usr/lib/python3/dist-packages/pip/__init__.py", line 24, in <module>
    from urllib3.exceptions import DependencyWarning
ImportError: cannot import name 'DependencyWarning'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 145, in apport_excepthook
    os.O_WRONLY | os.O_CREAT | os.O_EXCL, 0o640), 'wb') as f:
FileNotFoundError: [Errno 2] No such file or directory: '/var/crash/_usr_bin_pip3.0.crash'

Original exception was:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/pip/__init__.py", line 22, in <module>
    from pip._vendor.requests.packages.urllib3.exceptions import DependencyWarning
ImportError: cannot import name 'DependencyWarning'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/bin/pip3", line 9, in <module>
    from pip import main
  File "/usr/lib/python3/dist-packages/pip/__init__.py", line 24, in <module>
    from urllib3.exceptions import DependencyWarning
ImportError: cannot import name 'DependencyWarning'

я попытался переустановить Запросы, но не удалось из-за той же ошибки2, я установил ssl, но пункт не распознал его или что-то в этом роде.

Я не очень знаком с python и пунктом, поэтому я мог пропустить что-то тривиальное, но я не Не вижу, если кто-то может мне помочь, я был бы очень признателен, спасибо.

...