【发布时间】:2021-12-23 10:36:09
【问题描述】:
我正在尝试在 Jupyter 笔记本中运行 shell 命令,但它不起作用
!which python
显示错误
'which' is not recognized as an internal or external command,
operable program or batch file.
【问题讨论】:
标签: shell jupyter-notebook anaconda
我正在尝试在 Jupyter 笔记本中运行 shell 命令,但它不起作用
!which python
显示错误
'which' is not recognized as an internal or external command,
operable program or batch file.
【问题讨论】:
标签: shell jupyter-notebook anaconda
如果您使用的是基于 Windows 的系统:
!where python
其他:
%%bash
which python
参考资料:
【讨论】:
你能运行 python3 --version.我假设您使用的是 Windows。打开命令行并运行命令。如果您仍然得到相同的响应,则表示您在安装时没有将 python 添加到路径。你是用 Anaconda 安装的吗?
如果您想将 python 添加到路径中,只需点击此链接即可。这是不言自明的。如果您仍有问题,请在评论部分告诉我。
【讨论】: