未安装 Drake 和 Jupyter Notebook 运行时
Drake and the Jupyter notebook runtime is not installed
我有 ubuntu 20.04。
我已经安装了 drake 和 Jupyter notebook,但是
当我尝试 python3 -m pydrake.tutorials
时出现此错误:
ERROR: the Jupyter notebook runtime is not installed!
Drake offers Python tutorials that can be previewed and executed as Jupyter
notebooks online with no need for local installation. To run Drake's tutorials
online, refer to the `Drake Tutorials <https://drake.mit.edu/>`_ website.
Alternatively, to run Drake's tutorials locally from an
`installed <https://drake.mit.edu/installation.html>`_ copy of Drake,
run ``python3 -m pydrake.tutorials`` to launch a Jupyter browser.
Be sure your ``PYTHONPATH`` has been set per the installation instructions,
e.g., via ``source env/bin/activate`` in the
`pip instructions <https://drake.mit.edu/pip.html>`_.
If you haven't done so already, you'll also need to install the Jupyter
notebook package on your system:
- For pip or macOS, use: ``pip install notebook``.
- For Ubuntu, use ``sudo apt-get install jupyter-notebook``.
当我尝试时 运行 jupyter notebook
:
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/dmitriy/.local/lib/python3.8/site-packages/markupsafe/__init__.py)
这个命令帮助了我 python -m pip install markupsafe==2.0.1
。
路径/home/dmitriy/.local/lib/python3.8/site-packages/...
表示您安装了本地pip包,但没有使用虚拟环境(venv)。这些包可能会干扰 Jupyter 的运行时环境。
我有 ubuntu 20.04。
我已经安装了 drake 和 Jupyter notebook,但是
当我尝试 python3 -m pydrake.tutorials
时出现此错误:
ERROR: the Jupyter notebook runtime is not installed!
Drake offers Python tutorials that can be previewed and executed as Jupyter
notebooks online with no need for local installation. To run Drake's tutorials
online, refer to the `Drake Tutorials <https://drake.mit.edu/>`_ website.
Alternatively, to run Drake's tutorials locally from an
`installed <https://drake.mit.edu/installation.html>`_ copy of Drake,
run ``python3 -m pydrake.tutorials`` to launch a Jupyter browser.
Be sure your ``PYTHONPATH`` has been set per the installation instructions,
e.g., via ``source env/bin/activate`` in the
`pip instructions <https://drake.mit.edu/pip.html>`_.
If you haven't done so already, you'll also need to install the Jupyter
notebook package on your system:
- For pip or macOS, use: ``pip install notebook``.
- For Ubuntu, use ``sudo apt-get install jupyter-notebook``.
当我尝试时 运行 jupyter notebook
:
ImportError: cannot import name 'soft_unicode' from 'markupsafe' (/home/dmitriy/.local/lib/python3.8/site-packages/markupsafe/__init__.py)
这个命令帮助了我 python -m pip install markupsafe==2.0.1
。
路径/home/dmitriy/.local/lib/python3.8/site-packages/...
表示您安装了本地pip包,但没有使用虚拟环境(venv)。这些包可能会干扰 Jupyter 的运行时环境。