卸載殘余python的方法(Mac中卸載):
python版本查看
$python3--version
Python3.7.1
刪除Python3.7框架
$ls/Library/Frameworks/Python.framework/Versions/
3.7
$sudorm-rf/Library/Frameworks/Python.framework/Versions/3.7
刪除Python3.7應(yīng)用目錄:
$cd/Applications
$sudorm-rfPython\3.7/#Python3.7存在空格
查看launchpad中python3的IDLE就被刪除了
刪除/usr/local/bin目錄下指向的Python3.7的連接:
$cd/usr/local/bin/
$ls-l/usr/local/bin
$rmPython3.7
相關(guān)的文件和鏈接#Python3.7相關(guān)的文件和鏈接需要你自行確認(rèn)
Python3.7對(duì)應(yīng)的文件和鏈接最好刪除干凈;無(wú)法確認(rèn)的文件和鏈接就上網(wǎng)搜一下bing.
刪除python的環(huán)境路徑
$vi~/.bash_profile
刪除Python3.7設(shè)置的環(huán)境路徑。
確認(rèn)python是否已經(jīng)刪除
$python3
-bash:python3:commandnotfound
以上內(nèi)容為大家介紹了如何卸載殘余python?希望對(duì)大家有所幫助,如果想要了解更多Python相關(guān)知識(shí),請(qǐng)關(guān)注IT培訓(xùn)機(jī)構(gòu):千鋒教育。