$./configure --prefix=/usr/python --enable-shared CFLAGS=-fPIC
$make -j 4
#make install

На последнем шаге сообщите эту информацию:

Exception:
Traceback (most recent call last):
  File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 143, in main
    status = self.run(options, args)
  File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/commands/install.py", line 259, in run
    with self._build_session(options) as session:
  File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 79, in _build_session
    insecure_hosts=options.trusted_hosts,
  File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/download.py", line 337, in __init__
    self.headers["User-Agent"] = user_agent()
  File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_internal/download.py", line 100, in user_agent
    zip(["name", "version", "id"], distro.linux_distribution()),
  File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 120, in linux_distribution
    return _distro.linux_distribution(full_distribution_name)
  File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 675, in linux_distribution
    self.version(),
  File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 735, in version
    self.lsb_release_attr('release'),
  File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 892, in lsb_release_attr
    return self._lsb_release_info.get(attribute, '')
  File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 550, in __get__
    ret = obj.__dict__[self._fname] = self._f(obj)
  File "/tmp/tmp6dt7qois/pip-18.1-py2.py3-none-any.whl/pip/_vendor/distro.py", line 998, in _lsb_release_info
    stdout = subprocess.check_output(cmd, stderr=devnull)
  File "/home/sun/tools/Python-3.7.2/Lib/subprocess.py", line 395, in check_output
    **kwargs).stdout
  File "/home/sun/tools/Python-3.7.2/Lib/subprocess.py", line 487, in run
    output=stdout, stderr=stderr)
subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1.
Makefile:1130: recipe for target 'install' failed
make: *** [install] Error 2

0