【问题标题】:Can't run Anaconda from command line (or anywhere else)无法从命令行(或其他任何地方)运行 Anaconda
【发布时间】:2018-06-21 09:19:23
【问题描述】:

我正在运行带有 Anaconda 3 的 Windows 10。我试图通过单击资源管理器中的导航器应用程序 (Anaconda3\pkgs\anaconda-navigator-1.8.7-py36_0) 进入 Anaconda Navigator,但这只会显示我假设是命令窗口(因为它太快看不到)然后什么也没有发生。

我可以使用 Anaconda 提示符,所以我尝试使用“anaconda-navigator”运行导航器,它给出了错误行:

".....is not recognized as an internal or external command, operable program or batch file."

我尝试在命令行中输入“jupyter notebook”,但消息是:

Error executing Jupyter command 'notebook': [Errno 'jupyter-notebook' not found] 2

在我卸载并重新安装 Anaconda 时,这种情况已经发生过多次。我该如何解决这个问题,因为它似乎是一个严重的问题,因为几乎没有任何效果?

【问题讨论】:

    标签: python anaconda jupyter-notebook python-3.6


    【解决方案1】:

    对于初学者,我会检查环境路径。 如果您进入应用程序文件夹,即exe或运行程序所在的位置,您可以启动它吗? 有bin文件夹吗?看看你是否可以在调试模式下启动 Anaconda。

    这可能会有所帮助:http://anaconda-installer.readthedocs.io/en/latest/boot-options.html

    【讨论】:

    • 尽管安装了 anaconda,但没有任何与 anaconda 相关的工作,我总是得到类似:“'inst.rescue' 未被识别为内部或外部命令、可运行程序或批处理文件。”
    • 我已经尝试从 exe 程序中运行 anaconda navigator 但没有做任何事情(它会创建一个命令窗口的闪烁然后什么都不做)
    • 该闪存通常是一些错误消息出现并告诉您出了什么问题。在调试模式下运行 anaconda 将保持“flash”,以便阅读。
    • 如果我根本无法运行它,如何在调试模式下运行它?尽管安装程序告诉我它成功了,并且 Anaconda Prompt 仍在工作,但我根本无法从 Anaconda Prompt 运行任何东西。每个命令都会产生相同的消息:“{any command} 不被识别为内部或外部命令、可运行程序或批处理文件。”
    【解决方案2】:

    我会先看看anaconda-navigatorjupyter-notebook是否安装在你的anaconda提示符下通过命令conda list

    如果它们丢失,只需通过 conda install anaconda-navigator jupyter-notebook 安装它们

    通常,我会执行命令conda install anaconda anaconda-navigator jupyter ipython 只是为了确保您的环境中没有丢失任何包。

    希望这会有所帮助。 :)

    【讨论】:

      【解决方案3】:

      运行 anaconda-navigator:

      $ source ~/anaconda3/bin/activate root
      $ anaconda-navigator
      

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2019-11-30
        • 2015-07-31
        • 1970-01-01
        • 1970-01-01
        • 2022-10-25
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多