подтверждение модуля ssl в python 3.7, модуль ssl недоступен - PullRequest
0 голосов
/ 28 февраля 2019

Я перепробовал много вещей, которые опубликованы для разных версий, но не смог преодолеть эту проблему.Есть ли что-нибудь, чтобы быть замененным в местоположении сценария?или добавить любой код?

C:\Users\HARSHA>pip install speechrecognition
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting speechrecognition
  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/speechrecognition/
  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/speechrecognition/
  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/speechrecognition/
  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/speechrecognition/
  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/speechrecognition/
  Could not fetch URL https://pypi.org/simple/speechrecognition/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/speechrecognition/ (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 speechrecognition (from versions: )
No matching distribution found for speechrecognition
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

this is the error i am geting

1 Ответ

0 голосов
/ 01 апреля 2019

Я считаю, что это та же ошибка.

"Пип настроен с местоположениями, для которых требуется TLS / SSL, однако модуль ssl в Python недоступен"

Решение было:

"Я могу решить эту проблему, добавив путь к каталогу python, который имеет libeay32.dll (в моем случае C: \ Users \ Gabriel \ Anaconda3 \ pkgs \ openssl-1.1.1a-he774522_0 \ Library \ bin) в системной средев качестве верхней позиции. "

https://stackoverflow.com/a/54531318/2747958.

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