Python 3.3 source code setup: modules were not found: _lzma _sqlite3 _tkinter

前端 未结 4 1880
梦毁少年i
梦毁少年i 2021-02-03 11:02

I am trying to set up the compiled version of CPython, on Ubuntu 12.04, by following the python developer guide. Even after installing the dependent packages lzma and sqlite3,

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-02-03 11:45

    The lack of finding lzma and sqlite3 may be because your paths (LD_LIBRARY_PATH in particular) were incorrect. How did you install those two packages; did you use the package manager? If you installed manually, where did you install them? Also, did you install the development versions, if you used the package manager to install lzma and sqlite3? When installing from source, you'll need the development versions, so Python's source can find the necessary include files.

    Further, you may have to edit setup.py to indicate where these packages can be found.

    As for tkinter: this relies on tcl/tk, so check that you have the development versions of these packages installed if you're installing python/tkinter from source.

提交回复
热议问题