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