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

前端 未结 4 1879
梦毁少年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

    This works for me (Python 3.4, Ubuntu 13.04) meaning "make" completes cleanly:

    sudo apt-get install build-essential python-dev libncurses*-dev \
                         liblzma-dev libgdbm-dev libsqlite3-dev \
                         libbz2-dev tk-dev
    

    Install:

    cd python3.4
    make clean && ./configure && make && sudo make install
    

提交回复
热议问题