Получение ошибки при попытке установить numpy - python 3 - PullRequest
0 голосов
/ 28 февраля 2019

Я только что установил PyCharm на свой компьютер и хочу загрузить numpy на WIN7.Я положил pip install numpy в терминал PaCharm, но получил эту ошибку:

pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting numpy
  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 availabl
e.")': /simple/numpy/
  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 availabl
e.")': /simple/numpy/
  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 availabl
e.")': /simple/numpy/
  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 availabl
e.")': /simple/numpy/
  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 availabl
e.")': /simple/numpy/
  Could not fetch URL https://pypi.org/simple/numpy/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url:
 /simple/numpy/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping
  Could not find a version that satisfies the requirement numpy (from versions: )
No matching distribution found for numpy
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: /si
mple/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 pip setuptools но когда я положил это, я получил это:

pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org pip setuptools
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
ERROR: To modify pip, please run the following command:
C:\Users\Admin\PycharmProjects\lab05\venv\Scripts\python.exe -m pip install --trusted-host pypi.org --trusted-host files.pythonhosted.org pip setuptools
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: /si
mple/pip/ (Caused by SSLError("Can't connect to HTTPS URL because the SSL module is not available.")) - skipping

Я прочитал, что мне нужно найти python.exe в скриптах, поэтому я нашел его и набрал эту строку для терминала, но я получил это:

enter image description here

Что мне делать?

1 Ответ

0 голосов
/ 01 марта 2019

Эта ошибка может быть вызвана отсутствием openssl.Простая переустановка openssl (или установка в первый раз) может решить проблему.Следующий пользователь, похоже, исправил подобную проблему в Windows.https://stackoverflow.com/a/54932141/8292612

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...