Pycharm 使用 Jupyter 笔记本时出现错误 2。不存在这样的文件或目录

Error 2 in Pycharm working with Jupyter Notebooks. No such file or directory exist

我有 anaconda,使用 pycharm pro,当我尝试 运行 a "hello, world" 来测试我的笔记本时,我得到错误:

Cannot run program "/home/tyrin/anaconda3/envs/JupyterTest/bin/jupyter" (in directory "/home/tyrin/PycharmProjects/JupyterTest"): error=2, No such file or directory

有没有人遇到过这个问题并解决了?

Code:print("Hello, world")

将您的笔记本导出为 py,然后您可以 运行 在终端或 pycharm