CentOS刪除編譯安裝的Python3
阿新 • • 發佈:2018-03-24
shell mark sta fig com python3 shel clas mirror
編譯安裝Python3
# 下載 # wget https://www.python.org/ftp/python/3.6.4/Python-3.6.4.tar.xz wget http://mirrors.sohu.com/python/3.6.4/Python-3.6.4.tgz # 解壓 tar -xavf Python-3.6.4.tgz cd Python-3.6.4 # 編譯安裝 # ./configure --help查看編譯參數 # 默認安裝在'/usr/local/bin','/usr/local/lib' etc # 可以通過參數指定如:--prefix=/usr/local/python3 ./configure make # 把安裝日誌保存下來 make install > install.log
卸載Python3
通過安裝日誌可知Python3被安裝在如下目錄了
/usr/local/lib/python3.6
/usr/local/bin/2to3-3.6 to
/usr/local/bin/pyvenv-3.6
/usr/local/bin/pydoc3.6
/usr/local/bin/idle3.6
# 刪除上述文件
rm -rf /usr/local/lib/python3.6
rm -rf /usr/local/bin/2to3-3.6 to
rm -rf /usr/local/bin/pyvenv-3.6
rm -rf /usr/local/bin/pydoc3.6
rm -rf /usr/local/bin/idle3.6
CentOS刪除編譯安裝的Python3