• 周五. 5月 2nd, 2025

The necessary bits to build these optional modules were not found


24240 2022-03-23T15:03:51 The necessary bits to build these optional modules 24239 2022-03-23T15:03:51 Python build finished successfully!
24240 2022-03-23T15:03:51 The necessary bits to build these optional modules were not found:
24241 2022-03-23T15:03:51 _bz2                  _dbm                  _gdbm
24242 2022-03-23T15:03:51 _lzma                 _sqlite3              _tkinter
24243 2022-03-23T15:03:51 readline
24244 2022-03-23T15:03:51 To find the necessary bits, look in setup.py in detect_modules() for the module's name.
24245 2022-03-23T15:03:51
24246 2022-03-23T15:03:51
24247 2022-03-23T15:03:51 The following modules found by detect_modules() in setup.py, have been
24248 2022-03-23T15:03:51 built by the Makefile instead, as configured by the Setup files:
24249 2022-03-23T15:03:51 _abc                  atexit                pwd
24250 2022-03-23T15:03:51 time
24251 2022-03-23T15:03:51
24252 2022-03-23T15:03:51
24253 2022-03-23T15:03:51 Failed to build these modules:
24254 2022-03-23T15:03:51 _uuid
24255 2022-03-23T15:03:51
24256 2022-03-23T15:03:51 Makefile:616: recipe for target 'sharedmods' failed

解决办法

sudo apt-get install uuid-dev libbz2-dev libncurses5-dev libgdbm-dev tk8.6-dev libreadline-dev liblzma-dev libsqlite3-dev libssl-dev libffi-dev liblzma-dev sqlite3 unzip

发表评论

您的电子邮箱地址不会被公开。