Ошибка установки пакетов PyQt5 + qtpy в PyCharm 2020.1: SSL-модуль недоступен - PullRequest
0 голосов
/ 01 мая 2020

После установки Qt (5.14.2) в Win10 я создал новый проект в PyCharm 2020.1. В диалоговом окне настроек проекта я попытался установить пакеты PyQt5 и qtpy. Я получаю следующую ошибку:

Collecting PyQt5
Could not fetch URL https://pypi.org/simple/pyqt5/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pyqt5/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
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 is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
  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/pyqt5/
  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/pyqt5/
  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/pyqt5/
  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/pyqt5/
  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/pyqt5/
  Could not find a version that satisfies the requirement PyQt5 (from versions: )
No matching distribution found for PyQt5
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.

Модуль SSL недоступен. Как я могу установить его? Не могли бы вы помочь? Большое спасибо!

1 Ответ

0 голосов
/ 06 мая 2020

Хорошо, я нашел решение на GitHub . Файлы DLL должны быть скопированы из корзины в файл DLL.

...