Hen*_*nco 6 uninstall python apt 20.04
I\xe2\x80\x99m 尝试卸载 Python 3.10。
\n我已经尝试过以下两个命令:
\n$ sudo apt-get purge --auto-remove python3.10\n[sudo] password for henrique: \nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\nNote, selecting \'libqgispython3.10.4\' for regex \'python3.10\'\nNote, selecting \'libpython3.10-stdlib\' for regex \'python3.10\'\nPackage \'libpython3.10-stdlib\' is not installed, so not removed\nPackage \'libqgispython3.10.4\' is not installed, so not removed\n0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.\n\n$ sudo apt-get remove python3.10\nReading package lists... Done\nBuilding dependency tree \nReading state information... Done\nNote, selecting \'libqgispython3.10.4\' for regex \'python3.10\'\nNote, selecting \'libpython3.10-stdlib\' for regex \'python3.10\'\nPackage \'libpython3.10-stdlib\' is not installed, so not removed\nPackage \'libqgispython3.10.4\' is not installed, so not removed\n0 upgraded, 0 newly installed, 0 to remove and 11 not upgraded.\nRun Code Online (Sandbox Code Playgroud)\n但 Python 3.10 仍然安装。
\n$ which python3.10\n/usr/local/bin/python3.10\n\n$ python3.10\nPython 3.10.0 (default, Oct 23 2021, 15:04:26) [GCC 9.3.0] on linux\nType "help", "copyright", "credits" or "license" for more information.\n>>> \nRun Code Online (Sandbox Code Playgroud)\npython3.10我应该删除与文件夹相关的所有内容吗/usr/local/bin/?
PS:我已经从源代码安装了它,我不知道这是否有什么区别。
\n“我应该删除 /usr/local/bin/ 文件夹中与 python3.10 相关的所有内容吗? ”
是的,这是手动删除手动安装的软件的正确方法。
如果该目录中安装了多个应用程序,请务必小心。您不想删除您真正想保留的东西。
手动安装和卸载软件可能很乏味且容易出错。对于那个很抱歉。这是人们迁移到包和包管理器的两个原因。
| 归档时间: |
|
| 查看次数: |
54200 次 |
| 最近记录: |