1
Linux已经预装了Python 2.7,但是我安装了Python 3.5.2,认为我需要它,但实际上我没有。所以我想安全地将它从系统中移除,我该怎么做?从Redhat Linux卸载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
除非你确实需要时才该空间,为什么要去卸载的麻烦(特别是在你意识到你的道路上_需要Python3)?只需将'python'链接到'python2.7'可执行文件,并将$ PYTHONPATH和$ PYTHONHOME指向正确的值(http://stackoverflow.com/questions/7850908/what-exactly-should-be-set-in -pythonpath)。 – boardrider