無法從命令列啟動 Anaconda Navigator,選單中也沒有捷徑。發生了什麼事?

無法從命令列啟動 Anaconda Navigator,選單中也沒有捷徑。發生了什麼事?

在 Linux Mint 18.1 中,以下是我今天嘗試啟動 Anaconda Navigator 時得到的結果。昨晚有效:

$ python3
Python 3.6.1 |Anaconda 4.4.0 (64-bit)| (default, May 11 2017, 13:09:58) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> anaconda-navigator
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
NameError: name 'anaconda' is not defined
>>> 

答案1

這是因為您正在從 python shell 啟動 anaconda navigator。您必須先退出 shell 才能啟動 anaconda navigator。您可以使用以下命令退出 shell:

exit()

或按Ctrl+ D

然後您可以在命令列中鍵入:

anaconda-navigator

相關內容