python 3.6.4 pip Can\'t connect to HTTPS URL because the SSL module is not availa

Автор moreplavatel, 18 марта 2018, 12:09:26

« назад - далее »

0 Пользователи и 1 гость просматривают эту тему.

moreplavatel

Ставлю питон из исходников, компиляция проходит вроде без error.
После установки pip ругается на отсутствие модуля ssl.
Открыть содержимое (спойлер)


../python-3.6.4/bin/pip3 search selenium
Exception:
Traceback (most recent call last):
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 583, in urlopen
    conn = self._get_conn(timeout=pool_timeout)
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 257, in _get_conn
    return conn or self._new_conn()
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/_vendor/requests/packages/urllib3/connectionpool.py", line 808, in _new_conn
    raise SSLError("Can't connect to HTTPS URL because the SSL "
pip._vendor.requests.packages.urllib3.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/commands/search.py", line 45, in run
    pypi_hits = self.search(query, options)
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/commands/search.py", line 62, in search
    hits = pypi.search({'name': query, 'summary': query}, 'or')
  File "/home/alex/.local/python-3.6.4/lib/python3.6/xmlrpc/client.py", line 1112, in __call__
    return self.__send(self.__name, args)
  File "/home/alex/.local/python-3.6.4/lib/python3.6/xmlrpc/client.py", line 1452, in __request
    verbose=self.__verbose
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/download.py", line 775, in request
    headers=headers, stream=True)
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 522, in post
    return self.request('POST', url, data=data, json=json, **kwargs)
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/download.py", line 386, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 475, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/_vendor/requests/sessions.py", line 596, in send
    r = adapter.send(request, **kwargs)
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/_vendor/cachecontrol/adapter.py", line 47, in send
    resp = super(CacheControlAdapter, self).send(request, **kw)
  File "/home/alex/.local/python-3.6.4/lib/python3.6/site-packages/pip/_vendor/requests/adapters.py", line 497, in send
    raise SSLError(e, request=request)
pip._vendor.requests.exceptions.SSLError: Can't connect to HTTPS URL because the SSL module is not available.

[свернуть]

Установелнные пакеты относящиеся к openssl
Открыть содержимое (спойлер)

i A libevent-openssl-2.0-5 - Asynchronous event notification library (openssl)
i A openssl - инструменты протокола защищенных сокетов — криптографческие утилиты
i A perl-openssl-defaults - version compatibility baseline for Perl OpenSSL packages
i A python-openssl - Python 2 wrapper around the OpenSSL library
i  python3-openssl - Python 3 wrapper around the OpenSSL library
[свернуть]

Нужно какой то пакет еще доустановить перед сборкой питона?

Cообщение объединено 18 марта 2018, 13:31:04

Нашел.

libssl-dev

Искал до этого grep'ом по openssl, поэтому и не видел подходящего *-dev пакета.