gpt4 book ai didi

ubuntu - 终端窗口不工作 Ubuntu

转载 作者:行者123 更新时间:2023-12-04 18:25:24 32 4
gpt4 key购买 nike

我尝试使用以下命令从/usr/local/bin 中删除我的 python2.7 和 python3 文件夹:sudo rm -rf python2.7 和 sudo rm -rf python3。后来我的终端没有打开。我该如何解决?

最佳答案

当我将 python 更新到 3.6 并选择替代 python3.6 时,我遇到了同样的问题,但是当我将选项恢复为 python3.5 时,终端再次开始工作:

sudo update-alternatives --config python3
弹出以下消息:
There are 2 choices for the alternative python3 (providing /usr/bin/python3).

Selection Path Priority Status
------------------------------------------------------------
0 /usr/bin/python3.6 2 auto mode
* 1 /usr/bin/python3.5 1 manual mode
2 /usr/bin/python3.6 2 manual mode

Press <enter> to keep the current choice[*], or type selection number:
我选择了 1它开始工作了。
您可以使用 Virtual Studio Code 或任何 IDE 打开它的内部终端并运行命令来修复通用终端。

关于ubuntu - 终端窗口不工作 Ubuntu,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46998875/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com