如何卸载从源代码编译的Python?
我从源代码安装了Python 2.6,但后来不小心又通过软件包管理器安装了另一个Python 2.6。
我找不到卸载从源代码安装的Python的方法,这样做可能吗?简单吗?
我在使用Ubuntu 10.04。
6 个回答
0
你有没有试过使用 make uninstall?我觉得这个方法应该对你有用,前提是你有 Python 2.6 的源代码,并且 make 文件里有卸载的选项(应该是有的)。
6
我做了以下操作,然后用 'make install' 重新安装了一下,结果成功了。
whereis python3.6
rm -rf /usr/local/lib/python3.6
rm -rf /usr/local/bin/python3.6*
make install