Skip to content

Instantly share code, notes, and snippets.

@nesffer
Last active October 27, 2023 10:52
Show Gist options
  • Save nesffer/5fb3d6d4cd3e0cb65624 to your computer and use it in GitHub Desktop.
Save nesffer/5fb3d6d4cd3e0cb65624 to your computer and use it in GitHub Desktop.
Python 3.5 Build on Ubuntu 14.04.3
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_bz2 _curses _curses_panel
_dbm _gdbm _lzma
_sqlite3 _ssl _tkinter
readline zlib
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
sudo apt-get install libbz2-dev libncurses5-dev libgdbm-dev liblzma-dev sqlite3 libsqlite3-dev openssl libssl-dev tcl8.6-dev tk8.6-dev libreadline-dev zlib1g-dev
@zhuifengshen
Copy link

Thanks, it works for me. Python3.6.2 Ubuntu14.0.4

@zhanglongqi
Copy link

It works for me. Python3.6.4 Ubuntu14.04

@yudigithub
Copy link

i am use SUSE, how to make it work?

@nirvaan97
Copy link

Python build finished successfully!
The necessary bits to build these optional modules were not found:
_dbm _uuid
To find the necessary bits, look in setup.py in detect_modules() for the module's name.

was trying to install python 3.8.2 in ubuntu 18.04 and the above 2 problems remained while rest were solved by your answer

can you help me with these too

@villelaitila
Copy link

villelaitila commented Oct 26, 2020

sudo apt install libgdbm-compat-dev (Ubuntu)

@Thiago2VP
Copy link

Thanks, solved my problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment