Duck Spyder 作为启动器,通过 Anaconda 安装在 Ubuntu17.4 上

Duck Spyder as a launcher which is installed through Anaconda on Ubuntu17.4

安装 Anaconda(3 或更高版本)后,它包含 Spyder。所以它不被称为独立应用程序。这种拥有 Spyder 的问题是 Ubuntu 不允许隐藏它或在桌面上添加 Spyder 快捷方式或将其添加为收藏夹。因此,每次我需要 运行 Spyder 时,我都必须通过命令行 运行 它:$ spyder 这不是 运行 它的最佳和快速方法。

另一方面,我已经有spyder,基于它的官方网站不建议双重安装它:https://pythonhosted.org/spyder/installation.html

所以我需要一种方法,使我可以在桌面、收藏夹列表或 Duck 上为我的 Spyder 创建快捷方式。

经过大量搜索后,以下是对我有用的方法:从以下位置复制任何启动器:

/usr/share/applications/.

右击进入属性,将命令行改为spyder路径:

~/anaconda3/bin/spyder ~/anaconda/bin/spyder

Note: You can get the correct spyder path by typing: $ which spyder

根据需要更改其余信息,例如描述和图标路径。

将文件保存在 spyder.desktop 下,以便将其设置为桌面配置文件。

现在你有一个连接到 spyder 的应用程序启动器(在 Anaconda 中),将启动器复制到:

~/.local/share/applications/

现在图标应该会在您的应用程序菜单中弹出。

Note: You should set the user as the owner. So this is the last step:

sudo chown <username> ~/.local/share/applications/spyder.desktop