我最近在我的Xubuntu 16.04系统上安装了Anaconda。要从终端启动该应用程序,我只需使用anaconda-navigator
,它就可以很好地工作。
现在,我想为此创建一个桌面启动器,并将其也添加到我的xfce Whisker菜单中。因此,我创建了一个具有以下内容的桌面启动器。
[Desktop Entry]
Version=1.0
Type=Application
Name=Anaconda-Navigator
GenericName=Anaconda
Comment=Scientific PYthon Development EnviRonment - Python3
Exec=/home/meghana/anaconda3/bin/anaconda-navigator
Categories=Development;Science;IDE;Qt;
Icon=spyder3
Terminal=false
StartupNotify=true
MimeType=text/x-python;
但是,当我尝试从启动器打开应用程序时,我被定向到带有以下错误消息的本地HTML文件:
Navigator Error
An unexpected error occurred on Navigator start-up
Report
Please report this issue in the anaconda issue tracker
Main Error
byte indices must be integers or slices, not str
Traceback
Traceback (most recent call last):
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/exceptions.py", line 75, in exception_handler
return_value = func(*args, **kwargs)
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/app/start.py", line 115, in start_app
window = run_app(splash)
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/app/start.py", line 58, in run_app
window = MainWindow(splash=splash)
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/widgets/main_window.py", line 160, in __init__
self.api = AnacondaAPI()
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/api/anaconda_api.py", line 1205, in AnacondaAPI
ANACONDA_API = _AnacondaAPI()
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/api/anaconda_api.py", line 65, in __init__
self._conda_api = CondaAPI()
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/api/conda_api.py", line 1622, in CondaAPI
CONDA_API = _CondaAPI()
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/api/conda_api.py", line 340, in __init__
self.set_conda_prefix()
File "/home/meghana/anaconda3/lib/python3.6/site-
packages/anaconda_navigator/api/conda_api.py", line 489, in set_conda_prefix
self.ROOT_PREFIX = info['root_prefix']
TypeError: byte indices must be integers or slices, not str
我一生无法弄清为什么会这样,或者我应该做什么。
好心提醒。
注意:
之前报道这个问题的重复(如这一个),请注意,我不要求对如何创建桌面发射指令。为了找到解决方案,我已经在数个在线论坛中搜索了无数次,但是失败了。
Icon=spyder3
我以外,必须做一个locate -i 'anaconda-logo'
并将结果用作Icon。