How would I build python myself from source code on Ubuntu?

前端 未结 5 790
忘掉有多难
忘掉有多难 2020-11-27 13:15

Ubuntu comes with Python 2.7.2+ pre-installed. (I also downloaded the python dev packages.) Because of another issue I\'m having (Explained in extreme depth in How do I repl

5条回答
  •  青春惊慌失措
    2020-11-27 14:10

    You can use checkinstall to install from source code instead of make install.

    Once you download the source code, navigate to the home folder and use below commands

    ./configure
    make
    sudo checkinstall
    

    This creates a debian / RPM package and then installs it. Checkinstall keeps a tab of all the files modifications and dependencies and makes the whole uninstalling process easier. Since you have a .deb package, it's much easier to install on many systems and handle with a package manager.

    Source : Checkinstall - install from source code

提交回复
热议问题