【发布时间】:2021-02-01 09:31:52
【问题描述】:
我使用以下两个命令在我的系统环境中安装了一个包:
>>> conda activate pytorch_p36
>>> conda install tensorboard
我们可以看到预期的输出是什么样的,如下所示:
>>> tensorboard --version
TensorFlow installation not found - running with reduced feature set.
2.3.0
现在,我打开 Jupyter Notebook 并指定 pytorch_p36 内核。导入模块时会识别所有相关包。但是,我没有看到我在交互式 shell 中的预期。例如 Jupyter Notebook 中的如下代码:
!tensorboard --version
返回以下意外输出:
/usr/bin/sh: 1: tensorboard: not found
即使我在环境内核中,如何在同一个环境中使用交互式 shell 执行?
【问题讨论】:
标签: python jupyter-notebook jupyter conda