При попытке установить любой пакет ошибка:
(venv) C:\Users\s.naumkin\Desktop\HAKKO Connect>pip install pyodbc ERROR: Exception: Traceback (most recent call last): File "c:\users\s.naumkin\desktop\hakko connect\venv\lib\site-packages\pip\_internal\cli\base_command.py", line 180, in _main status = self.run(options, args) File "c:\users\s.naumkin\desktop\hakko connect\venv\lib\site-packages\pip\_vendor\urllib3\connection.py", line 500, in _connect_tls_proxy return ssl_wrap_socket( File "c:\users\s.naumkin\desktop\hakko connect\venv\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py", line 432, in ssl_wrap_socket ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls) File "c:\users\s.naumkin\desktop\hakko connect\venv\lib\site-packages\pip\_vendor\urllib3\util\ssl_.py", line 474, in _ssl_wrap_socket_impl return ssl_context.wrap_socket(sock) File "C:\Users\s.naumkin\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 500, in wrap_socket return self.sslsocket_class._create( File "C:\Users\s.naumkin\AppData\Local\Programs\Python\Python39\lib\ssl.py", line 997, in _create raise ValueError("check_hostname requires server_hostname") ValueError: check_hostname requires server_hostname
Нагуглил, что ошибка может быть в библиотеке urllib3, сделал ей даунгрейд. Теперь появляется новая ошибка:
C:\Users\s.naumkin>pip install pyodbc WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)'))': /simple/pyodbc/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)'))': /simple/pyodbc/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)'))': /simple/pyodbc/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)'))': /simple/pyodbc/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)'))': /simple/pyodbc/ Could not fetch URL https://pypi.org/simple/pyodbc/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/pyodbc/ (Caused by SSLError(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)'))) - skipping ERROR: Could not find a version that satisfies the requirement pyodbc (from versions: none) ERROR: No matching distribution found for pyodbc 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(SSLError(1, '[SSL: WRONG_VERSION_NUMBER] wrong version number (_ssl.c:1129)'))) - skipping
Пробовал так pip –trusted-host pypi.org install pyodbc
Пробовал так pip –proxy https://user:pass@192.168.1.200:8080 install pyodbc
Все одна ошибка. На домашнем компе все работает отлично с такими же версиями и питона и пипа.
Пробовал поднять ВПН до домашнего компа с перенаправлением всего трафика, все равно не работает. Прогуглил уже почти все. Нигде не могу найти решения.