简体   繁体   English

ModuleNotFoundError:jupyter 笔记本中没有名为“deeppavlov”的模块

[英]ModuleNotFoundError: No module named 'deeppavlov' in jupyter notebook

I've created a virtual enviornment (deepnlp) and installed the deeppavlov package in the virtual env.我创建了一个虚拟环境(deepnlp)并在虚拟环境中安装了 deeppavlov package。 I could run "import deeppavlov" without any problem on the command line in the env.我可以在环境中的命令行上毫无问题地运行“import deeppavlov”。 But when I tried to do the same thing ('import deeppavlov') in the jupyter notebook, in the kernel 'deepnlp', but I got the error mesaage:但是当我尝试在 jupyter 笔记本中做同样的事情('import deeppavlov')时,在 kernel 'deepnlp' 中,但我收到了错误消息:

Traceback (most recent call last): File "", line 1, in ModuleNotFoundError: No module named 'deeppavlov'回溯(最后一次调用):文件“”,第 1 行,在 ModuleNotFoundError:没有名为“deeppavlov”的模块

Has anyone encountered the same problem and found out the solution?有没有人遇到同样的问题并找到了解决方案? This problem may or may have to do with the package 'deeppavlov'.这个问题可能或可能与 package 'deeppavlov' 有关。 It could be because something else.可能是因为别的。

Thanks.谢谢。

As far as I know, installing a package to virtualenv has nothing to do with your Jupyter (unless the same interpreter is used in both cases).据我所知,将 package 安装到 virtualenv 与您的 Jupyter 无关(除非在两种情况下都使用相同的解释器)。 The solution would be to run the following command in jupyter cell:解决方案是在 jupyter 单元中运行以下命令:

import sys.{sys.executable} -m pip install --user deeppavlov

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ModuleNotFoundError:没有名为“pandas”的模块(jupyter notebook) - ModuleNotFoundError: No module named 'pandas' (jupyter notebook) ModuleNotFoundError:Jupyter Notebook 中没有名为“tensorflow”的模块 - ModuleNotFoundError: No module named 'tensorflow' In Jupyter Notebook ModuleNotFoundError:Jupyter Notebook 没有名为“keras”的模块 - ModuleNotFoundError: No module named 'keras' for Jupyter Notebook 进入 Jupyter 笔记本:ModuleNotFoundError:没有名为“podman”的模块 - Getting in Jupyter notebook: ModuleNotFoundError: No module named 'podman' ModuleNotFoundError:Jupyter Notebook 上没有名为“pandas”的模块 - ModuleNotFoundError: No module named 'pandas' on Jupyter Notebook Jupyter 笔记本错误 ModuleNotFoundError:没有名为“datascience”的模块 - Jupyter notebook error ModuleNotFoundError: No module named 'datascience' ModuleNotFoundError:没有名为“numpy”的模块 - Jupyter Notebook - ModuleNotFoundError: No module named 'numpy' - Jupyter Notebook ModuleNotFoundError:jupyter 笔记本上没有名为“web3”的模块 - ModuleNotFoundError: No module named 'web3' on jupyter notebook ModuleNotFoundError:Jupyter Notebook 上没有名为“tensorflow”的模块 - ModuleNotFoundError: No module named 'tensorflow' on Jupyter Notebook ModuleNotFoundError:jupyter 笔记本中没有名为“seaborn”的模块 - ModuleNotFoundError: No module named 'seaborn' in jupyter notebook
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM