我在 Ubuntu 16.04 LTS 系统上安装了 Python 3.9,此外还安装了系统自带的默认 2.7 和 3.5。我可以通过输入python3.9完美调用它,也可以使用pip3.9命令。
我想从系统中删除它,重新安装它,甚至是早期版本的 python。
我已经尝试过了sudo apt-get remove python3.9
、、、、。似乎都没有效果。sudo apt-get autoremove python3.9
sudo apt-get purge python3.9
sudo apt-get remove --purge python3.9
sudo apt-get autoremove --purge python3.9
当我打电话时,python3.9
它来了:
Python 3.9.0 (default, Nov 14 2020, 00:35:31)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>>
Run Code Online (Sandbox Code Playgroud)
我该如何解决这个问题?谢谢
Man*_*l F 13
如果您仍然需要它。
首先,绝对不建议卸载 python。例如检查此链接。
话虽如此,Ubuntu 16.04 并不依赖(不是构建)Python 3.9(例如,检查一下)。因此,原则上你不应该在完全卸载它时遇到问题......因为这是我的情况。
我按照这些步骤没有遇到任何问题;对于你/我来说会是这样的:
sudo apt-get clean
sudo apt-get autoremove --purge
sudo apt-get remove python3.9
sudo apt-get autoremove
Run Code Online (Sandbox Code Playgroud)
祝你好运!
归档时间: |
|
查看次数: |
72987 次 |
最近记录: |