Невозможно установить какой-либо пакет python SSLError - PullRequest
1 голос
/ 18 июня 2020

Я недавно изменил свой путь к среде, чтобы установить vpckg - это не удалось, поэтому я изменил свой путь обратно на тот, который был раньше, см. Прикрепленное изображение с системными путями. Я не знаю, вызвало ли это проблему, с которой я сейчас сталкиваюсь, но на всякий случай добавил системные пути. Image1

Однако теперь, когда я пытаюсь запустить что-нибудь, он сообщает мне, что мне нужно переустановить Numpy. Когда я пытаюсь это сделать, я получаю следующую ошибку:

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/pip/

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/pip/

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/pip/

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/pip/

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/pip/

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

Requirement already up-to-date: pip in c:\users\victor.ciulei\appdata\roaming\python\python37\site-packages (20.0.2)
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

Я уже пробовал добавить

pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org numpy , но получил ту же ошибку.

Использование Python 3,7 по Windows 10.

1 Ответ

0 голосов
/ 05 июля 2020

Переустановка Miniconda сделала свое дело.

...