0

When trying to install python 3.7 on Ubuntu 18.04

I get error messages like:

zipimport.ZipImportError: can't decompress data; zlib not available

or

ModuleNotFoundError: No module named '_ctypes'

or

~/.pyenv/plugins/python-build/bin/python-build: line 775: make: command not found

or

configure: error: no acceptable C compiler found in $PATH

  • How did you try to install Python? Compiling from upstream sources? – sebasth Apr 24 at 18:19
  • I was using pyenv – lapolonio Apr 27 at 2:58
1

From https://bugs.python.org/issue31652#msg321260

sudo apt-get install build-essential libsqlite3-dev sqlite3 bzip2 libbz2-dev zlib1g-dev libssl-dev openssl libgdbm-dev libgdbm-compat-dev liblzma-dev libreadline-dev libncursesw5-dev libffi-dev uuid-dev

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.