Linux已经预装了Python 2.7,但是我安装了Python 3.5.2,认为我需要它,但实际上我不需要。所以我想安全彻底地从系统中移除它,我该怎么做呢?
我之前使用下面的命令安装了Python 3.5.2
wget https://www.python.orf.ftp/python/3.5.2/Python-3.5.2.tgz
tar -xvf Python-3.5.2.tgz
cd Python-3.5.2.tgz
./configure
make install
ls /usr/local/bin //python 3.5.2 is stored at this location
应该有uninstall
脚本,但python真的没有。如果你从一开始就没有改变任何选项(我的意思是config和make),你可以这样做
//小心射频//
sudo rm -rf /usr/local/bin/python3* /usr/local/bin/pydoc3 /usr/local/lib/python3.1 /usr/local/include/python3.1 /usr/local/lib/pkgconfig/python3.pc /usr/local/lib/libpython3.1.a