【问题标题】:Jupyter Notebook failed command in Anaconda Prompt for Qiskit用于 Qiskit 的 Anaconda Prompt 中的 Jupyter Notebook 命令失败
【发布时间】:2021-04-02 08:21:10
【问题描述】:

我通过 Anaconda 安装了 Qiskit,并在 Python 3.8 中设置了一个虚拟环境。当我运行 (.venv) C:\Users\brenm>jupyter notebook(在 Anaconda 提示符中)时,它失败并抛出 'jupyter' is not recognized as an internal or external command, operable program or batch file.

为了解决这个问题,我运行了 (.venv) C:\Users\brenm>python -m pip install jupyter --user 并正确安装了 jupyter notebook。但是当我在 Anaconda 提示符中运行 jupyter notebook 时,它仍然会抛出 'jupyter' is not recognized as an internal or external command, operable program or batch file.

我对正在发生的事情感到非常困惑,因为我认为 jupyter notebook 是应该已经安装的 Qiskit 依赖项。更何况,我很困惑为什么当我手动安装 jupyter notebook 时,命令jupyter notebook 无法识别。

【问题讨论】:

    标签: python python-3.x jupyter-notebook anaconda qiskit


    【解决方案1】:

    既然你确定你的 Python 库路径在你的系统变量中,你可以试试这个命令: python -m notebook

    【讨论】:

      猜你喜欢
      • 2021-09-08
      • 2021-08-13
      • 2020-09-19
      • 2020-06-05
      • 2021-09-20
      • 1970-01-01
      • 1970-01-01
      • 2022-10-17
      • 1970-01-01
      相关资源
      最近更新 更多