Python Forum

Full Version: How can prepare the modules when compiling python3.11?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Compile python-3.11:

curl -O https://www.python.org/ftp/python/3.11.0...rc2.tar.xz
tar -xf Python-3.11.0rc2.tar.xz
cd Python-3.11.0rc2/
./configure --enable-optimizations
make -j 4

It encounter the following error:

The necessary bits to build these optional modules were not found:
_bz2 _curses _curses_panel
_dbm _gdbm _hashlib
_lzma _ssl _tkinter
_uuid readline zlib

How can fix it?
What is your os?

Somebody else had the same problem.

https://stackoverflow.com/questions/4976...on3-4-from

It also appears that the message is not an error. At least according to this writeup.

https://getkt.com/2019/11/23/compile-and...-on-linux/

So if you don't plan on using bz2_curses_curses_panel, you don't need to worry that it cannot be built.