2

I'm in my virtual environment in vscode, installed beautifulsoup, and I can see the latest version file in the virtual environment files, and I'm running the notebook yet it gives the error of ModuleNotFoundError: No module named 'bs4', any help here?

NB: when I write pip show beautifulsoup4, it gives me all the details about the package version 4.11.1

I pip install beautifulsoup4 and pip install bs4

JialeDu
  • 6,021
  • 2
  • 5
  • 24
Gojoe
  • 91
  • 1
  • 6
  • Does this solve your problem? [ModuleNotFoundError:](https://stackoverflow.com/a/73398463/19290081) – Jamiu S. Oct 10 '22 at 15:13
  • What precisely did you do? You only paraphrase your actions, which only allows guessing. Also, reduce the scope of your attempts. – Ulrich Eckhardt Oct 10 '22 at 17:41

1 Answers1

0

Make sure the interpreter version you are using is the same environment where you installed the bs4 package.

  • Click on the python version at the top right of the jupyter notebook

    enter image description here

  • Select the interpreter environment where the bs4 package is installed

    enter image description here

JialeDu
  • 6,021
  • 2
  • 5
  • 24