Uninstall python built from source?

后端 未结 6 1707
北荒
北荒 2020-11-27 15:16

I\'ve installed python 2.6 from source, and somehow later mistakenly installed another python 2.6 from a package manager too.

I can\'t find a way to uninstall a pyth

6条回答
  •  谎友^
    谎友^ (楼主)
    2020-11-27 15:23

    Do you still have the source directory where you compiled Python before? If so, you can CD into that directory and run sudo make uninstall.

    If you don't have it still, you could re-create it by going through the build steps again--download, extract, configure, and make--but end with sudo make uninstall instead of sudo make install, of course.

提交回复
热议问题