简体   繁体   中英

jupyter notebook not finding python module that is definitely installed

I have a Python script in Jupyter Notebook that has some module dependencies.

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:

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. I have run both py -3 -m pip install furl and py -2 -m pip install furl to successfully install furl on both versions.

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。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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