简体   繁体   English

jupyter笔记本找不到绝对安装的python模块

[英]jupyter notebook not finding python module that is definitely installed

I have a Python script in Jupyter Notebook that has some module dependencies. 我在Jupyter Notebook中有一个Python脚本,该脚本具有一些模块依赖性。

Here is where I'm importing them: 这是我要导入它们的位置:

import requests
import furl
import pandas as pd
import numpy as np
import json

When I run that code block in Jupyter, I get this error: 当我在Jupyter中运行该代码块时,出现以下错误:

ModuleNotFoundError                       Traceback (most recent call last)
<ipython-input-21-9114a07a03b4> in <module>()
      1 import requests
----> 2 import furl
      3 import pandas as pd
      4 import numpy as np
      5 import json

ModuleNotFoundError: No module named 'furl'

I have both Python 2.7 and 3.7 on my machine. 我的机器上同时装有Python 2.7和3.7。 I have run both py -3 -m pip install furl and py -2 -m pip install furl to successfully install furl on both versions. 我已经同时运行py -3 -m pip install furl和py -2 -m pip install furl以成功在这两个版本上都安装了furl。

Yet, I still get this module not found error. 但是,我仍然收到此模块未找到错误。

I have no idea what to do next. 我不知道下一步该怎么做。 Would be very grateful for any help. 非常感谢您的帮助。

我还安装了Anaconda,因此我需要打开Anaconda Prompt并运行conda install furl。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM