Module not appearing in jupyter

Viewed 4038

I'm having issues with importing my modules into jupyter. I did the following:

  1. Create virtual env
  2. Activate it (everything below is in the context of my venv)
  3. install yahoo finance module: pip install yfinance
  4. open python console and import it to test if working > OK!
  5. open jupyter notebook
  6. import yfinance throws ModuleNotFoundError: No module named 'yfinance'

Any suggestions on how to fix this?

2 Answers

Try

pip3 install yfinance

If you are inside a conda environment, it might be better to use conda install that handles all the dependencies:

conda install yfinance

try this one in your jupyter and the run it

!pip install yfinance

Related