You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python3.12 BUG: ModuleNotFoundError: No module named '_bz2' #116224
I recompile python 3.12, and look through the reports along with the compilation, and I found the following reports:
The necessary bits to build these optional modules were not found:
_bz2 _dbm _gdbm
_lzma _tkinter readline
To find the necessary bits, look in configure.ac and config.log.
I have no idea what to do to help python find these "necessary bits".
Activity
Zhang-Junzhi commentedon Mar 1, 2024
I recompile python 3.12, and look through the reports along with the compilation, and I found the following reports:
I have no idea what to do to help python find these "necessary bits".
Zhang-Junzhi commentedon Mar 1, 2024
I resolved this issue by installing libbz2-dev:
sudo apt install libbz2-devBy the way, I was using Deepin Distro.
gaogaotiantian commentedon Mar 1, 2024
You can refer to devguide for installing dependencies - https://devguide.python.org/getting-started/setup-building/#install-dependencies