title: subprocess.CalledProcessError: Command ERROR
body: <p>i'am on debian 10 OS and i'am trying to install python 3.9 (tried also 3.6 to 3.9), i need 3.6 because my apps working with f&quot;&quot;, can't manage to do it in another way and i don't want to.
  So i execute does commands:</p>
  <blockquote>
  <p>wget <a href="https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz" rel="nofollow noreferrer">https://www.python.org/ftp/python/3.9.1/Python-3.9.1.tgz</a></p>
  </blockquote>
  <blockquote>
  <p>tar -xf Python-3.9.1.tgz</p>
  </blockquote>
  <blockquote>
  <p>cd Python-3.9.1</p>
  </blockquote>
  <blockquote>
  <p>./configure --enable-optimizations</p>
  </blockquote>
  <blockquote>
  <p>make -j 2</p>
  </blockquote>
  <p>and the problem happens there when i try to install python in binairies</p>
  <blockquote>
  <p>sudo make altinstall</p>
  </blockquote>
  <p>i got this error:</p>
  <pre><code>    running install_scripts
  copying build/scripts-3.9/idle3.9 -&gt; /usr/local/bin
  copying build/scripts-3.9/pydoc3.9 -&gt; /usr/local/bin
  copying build/scripts-3.9/2to3-3.9 -&gt; /usr/local/bin
  changing mode of /usr/local/bin/idle3.9 to 755
  changing mode of /usr/local/bin/pydoc3.9 to 755
  changing mode of /usr/local/bin/2to3-3.9 to 755
  rm /usr/local/lib/python3.9/lib-dynload/_sysconfigdata__linux_x86_64-linux-gnu.py
  rm -r /usr/local/lib/python3.9/lib-dynload/__pycache__
  /usr/bin/install -c -m 644 ./Misc/python.man \
      /usr/local/share/man/man1/python3.9.1
  if test &quot;xupgrade&quot; != &quot;xno&quot;  ; then \
      case upgrade in \
          upgrade) ensurepip=&quot;--altinstall --upgrade&quot; ;; \
          install|*) ensurepip=&quot;--altinstall&quot; ;; \
      esac; \
       ./python -E -m ensurepip \
          $ensurepip --root=/ ; \
  fi
  ERROR: Exception:
  Traceback (most recent call last):
    File &quot;/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl/pip/_internal/cli/base_command.py&quot;, line 228, in _main
      status = self.run(options, args)
    File &quot;/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl/pip/_internal/cli/req_command.py&quot;, line 182, in wrapper
      return func(self, options, args)
    File &quot;/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl/pip/_internal/commands/install.py&quot;, line 272, in run
      session = self.get_default_session(options)
    File &quot;/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl/pip/_internal/cli/req_command.py&quot;, line 80, in get_default_session
      self._session = self.enter_context(self._build_session(options))
    File &quot;/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl/pip/_internal/cli/req_command.py&quot;, line 90, in _build_session
      session = PipSession(
    File &quot;/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl/pip/_internal/network/session.py&quot;, line 249, in __init__
      self.headers[&quot;User-Agent&quot;] = user_agent()
    File &quot;/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl/pip/_internal/network/session.py&quot;, line 132, in user_agent
      zip([&quot;name&quot;, &quot;version&quot;, &quot;id&quot;], distro.linux_distribution()),
    File &quot;/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py&quot;, line 125, in linux_distribution
      return _distro.linux_distribution(full_distribution_name)
    File &quot;/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py&quot;, line 681, in linux_distribution
      self.version(),
    File &quot;/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py&quot;, line 741, in version
      self.lsb_release_attr('release'),
    File &quot;/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py&quot;, line 903, in lsb_release_attr
      return self._lsb_release_info.get(attribute, '')
    File &quot;/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py&quot;, line 556, in __get__
      ret = obj.__dict__[self._fname] = self._f(obj)
    File &quot;/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py&quot;, line 1014, in _lsb_release_info
      stdout = subprocess.check_output(cmd, stderr=devnull)
    File &quot;/home/tarek/Python-3.9.1/Lib/subprocess.py&quot;, line 420, in check_output
      return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File &quot;/home/tarek/Python-3.9.1/Lib/subprocess.py&quot;, line 524, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '('lsb_release', '-a')' died with &lt;Signals.SIGABRT: 6&gt;.
  Traceback (most recent call last):
    File &quot;/home/tarek/Python-3.9.1/Lib/runpy.py&quot;, line 197, in _run_module_as_main
      return _run_code(code, main_globals, None,
    File &quot;/home/tarek/Python-3.9.1/Lib/runpy.py&quot;, line 87, in _run_code
      exec(code, run_globals)
    File &quot;/home/tarek/Python-3.9.1/Lib/ensurepip/__main__.py&quot;, line 5, in &lt;module&gt;
      sys.exit(ensurepip._main())
    File &quot;/home/tarek/Python-3.9.1/Lib/ensurepip/__init__.py&quot;, line 210, in _main
      return _bootstrap(
    File &quot;/home/tarek/Python-3.9.1/Lib/ensurepip/__init__.py&quot;, line 129, in _bootstrap
      return _run_pip(args + [p[0] for p in _PROJECTS], additional_paths)
    File &quot;/home/tarek/Python-3.9.1/Lib/ensurepip/__init__.py&quot;, line 38, in _run_pip
      return subprocess.run([sys.executable, &quot;-c&quot;, code], check=True).returncode
    File &quot;/home/tarek/Python-3.9.1/Lib/subprocess.py&quot;, line 524, in run
      raise CalledProcessError(retcode, process.args,
  subprocess.CalledProcessError: Command '['/home/tarek/Python-3.9.1/python', '-c', '\nimport runpy\nimport sys\nsys.path = [\'/tmp/tmptbfwxyt5/setuptools-49.2.1-py3-none-any.whl\', \'/tmp/tmptbfwxyt5/pip-20.2.3-py2.py3-none-any.whl\'] + sys.path\nsys.argv[1:] = [\'install\', \'--no-cache-dir\', \'--no-index\', \'--find-links\', \'/tmp/tmptbfwxyt5\', \'--root\', \'/\', \'--upgrade\', \'setuptools\', \'pip\']\nrunpy.run_module(&quot;pip&quot;, run_name=&quot;__main__&quot;, alter_sys=True)\n']' returned non-zero exit status 2.
  make: *** [Makefile:1265: altinstall] Error 1
  </code></pre>
  <p>Any solution please, got tired from it, and i can't reinstall the system because it's on the server and it would take so much time.</p>
  <p>Ask me if you need more information, i'am here to help and get help so !</p>