Любая операция conda или pip дает ошибку SSL в Windows 10 - PullRequest
1 голос
/ 15 марта 2019

Я пытался установить или обновить новые пакеты в моей системе Windows 10, где я установил Anaconda3 (версия 2019). Но каждый раз, когда я получаю ту же ошибку SSL.Я подозреваю, что это может быть проблема брандмауэра компании, если бы я мог получить доступ к этому в домашней сети Wi-Fi.Но везде я получаю одну и ту же ошибку.При запуске COnda Search я получаю эту ошибку:

conda search
Loading channels: failed

CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://repo.anaconda.com/pkgs/free/win-64/repodata.json.bz2>
Elapsed: -

An HTTP error occurred when trying to retrieve this URL.
HTTP errors are often intermittent, and a simple retry will get you on your way.

If your current network has https://www.anaconda.com blocked, please file
a support request with your network engineering team.

SSLError(MaxRetryError('HTTPSConnectionPool(host=\'repo.anaconda.com\', port=443): Max retries exceeded with url: /pkgs/free/win-64/repodata.json.bz2 (Caused by SSLError("Can\'t connect to HTTPS URL because the SSL module is not available."))'))

И с установкой Pip я получаю эту ошибку:

pip install keras

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

У меня установлен OpenSSL из этого места "https://slproweb.com/products/Win32OpenSSL.html" и папка lib установлена ​​в переменной PATH. Но ничего не работает. Пожалуйста, предложите.

1 Ответ

0 голосов
/ 08 июля 2019

Мне удалось решить проблему, следуя инструкциям ЭТОГО . В принципе: * скопируйте следующие файлы из CONDA_PATH \ Library \ bin в CONDA_PATH \ DLLs

libcrypto-1_1-x64.*
libssl-1_1-x64.*
...