第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

如何在MacOSX10.6.4上卸載Python2.7?

如何在MacOSX10.6.4上卸載Python2.7?

慕的地6264312 2019-06-15 18:29:48
如何在MacOSX10.6.4上卸載Python2.7?我想從我的MacOSX10.6.4中完全刪除Python2.7。我設(shè)法從PATH通過還原我的.bash_profile..但是我也希望刪除Python2.7安裝包安裝的所有目錄、文件、符號鏈接和條目。我從http://www.python.org/..我需要刪除哪些目錄/文件/配置文件條目?什么地方有單子嗎?
查看完整描述

3 回答

?
瀟瀟雨雨

TA貢獻(xiàn)1833條經(jīng)驗(yàn) 獲得超4個贊

如果使用PKG安裝程序安裝它,則可以:

pkgutil --pkgs

或更好:

pkgutil --pkgs | grep org.python.Python

它將輸出如下內(nèi)容:

org.python.Python.PythonApplications-2.7org.python.Python.PythonDocumentation-2.7org.python.Python.PythonFramework-2.7org.
python.Python.PythonProfileChanges-2.7org.python.Python.PythonUnixTools-2.7

現(xiàn)在可以選擇要取消鏈接(刪除)的包。

這是取消鏈接的文檔:

 --unlink package-id             Unlinks (removes) each file referenced by package-id. WARNING: This command makes no attempt to
  perform reference counting or dependency analy-
             sis. It can easily remove files required by your system. It may include unexpected files due to package tainting.
              Use the --files command first
             to double check.

在我的示例中,您將鍵入

pkgutil --unlink org.python.Python.PythonApplications-2.7pkgutil --unlink org.python.Python.PythonDocumentation-2.7pkgutil --unlink
 org.python.Python.PythonFramework-2.7pkgutil --unlink org.python.Python.PythonProfileChanges-2.7pkgutil --unlink org.
 python.Python.PythonUnixTools-2.7

或者用一行:

pkgutil --pkgs | grep org.python.Python | xargs -L1 pkgutil -f --unlink

重要內(nèi)容:-從獅子開始就不再有鏈接了(截至2014年第1季度,將包括獅子、山獅和小牛)。如果任何來看這個說明的人試著用它和獅子一起使用,應(yīng)該試著用這篇文章說的話來調(diào)整它:https:/wincent.com/wiki/卸載_Packages_(.pkg_file)_on_mac_OS_X


查看完整回答
反對 回復(fù) 2019-06-15
  • 3 回答
  • 0 關(guān)注
  • 6032 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號