终端打开输入下列命令
sudo gedit
然后将下面代码粘贴,记得改成自己的路径
[Desktop Entry]
Version=1.0
Name=Anaconda
Type=Application
GenericName=Anaconda
Comment=Scientific Python Development Environment - Python3
Exec=bash -c ‘export PATH="/home/wl/anaconda3/bin:$PATH" && /home/wl/anaconda3/bin/anaconda-navigator’
Categories=Development;Science;IDE;Qt;Education;
Icon=/home/wl/anaconda3/lib/python3.7/site-packages/anaconda_navigator/static/images/anaconda-icon-256x256.png
Terminal=false
StartupNotify=true
MimeType=text/x-python;
不用管警告