如何在 Ubuntu 上安装 Thonny Python IDE

Thonny 是适用于 Windows、MacOS 和 Linux 的免费开源 Python IDE。 最适合初学者,因为它易于使用和内置 python 配置。 它带有内置调试器,您可以通过变量资源管理器、代码完成以及对语法错误和解释范围的支持来探索变量。 您还可以在 Thonny IDE 中轻松安装安装 3rd 方软件包。 其他一些功能是堆、堆栈、助手和对象检查器。 它是在 Mit 许可证下发布的。

在 Ubuntu 上安装 Thonny Python IDE

通过 Linux 安装程序脚本的 Thonny Python IDE。 它将在您的系统上下载并安装 Thonny Python IDE 和 python。

打开您的终端软件 (ctrl+alt+t) 并运行以下命令。

bash <(wget -O - https://thonny.org/installer-for-linux)

然后回车确认Thonny和python安装。 此 Thonny 安装程序脚本将在您的系统上安装 Thonny 和 Python。 您可以从应用程序列表中打开 Thonny Python IDE。

或者您可以从安装的文件夹运行。 对我来说,它安装在“/home/manikandan/apps/thonny/bin/thonny”中。 这里“manikandan”是我的用户名。 您将在 thonny 安装过程结束时获得安装路径。

cd /home/manikandan/apps/thonny/bin/
./thonny

您可以通过以下命令卸载 Tony。

cd /home/manikandan/apps/thonny/bin/
./uninstall

通过 pip 安装 Thonny Python IDE:

如果您想通过 pip 安装 Thonny Python IDE,请运行以下命令。 如果您的系统中没有 pip 。 通过下面的链接安装它。

C-evo:新视野回合制帝国建设游戏

如何在 Ubuntu 上安装 pip

然后在您的终端中运行此 Thonny Python IDE pip 安装命令。 它将安装 Thonny。

sudo pip3 install thonny

通过 apt 安装 Thonny Python IDE:

您也可以通过 Ubuntu 存储库安装 Thonny IDE,但这不是推荐的方式,因为它可能不是最新版本。 在终端运行中

sudo apt update
sudo apt install thonny

就是这样。