'Module not appearing in jupyter

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?



Solution 1:[1]

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

Solution 2:[2]

try this one in your jupyter and the run it

!pip install yfinance

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Giorgos Myrianthous
Solution 2 aliiyo