close

[Solved] ImportError: No Module Named bs4 (BeautifulSoup)

Hello Guys, How are you all? Hope You all Are Fine. Today I get the following error ImportError: No Module Named bs4 (BeautifulSoup) in python. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How ImportError: No Module Named bs4 (BeautifulSoup) Error Occurs?

Today I get the following error ImportError: No Module Named bs4 (BeautifulSoup) in python.

How To Solve ImportError: No Module Named bs4 (BeautifulSoup) Error ?

  1. How To Solve ImportError: No Module Named bs4 (BeautifulSoup) Error ?

    To Solve ImportError: No Module Named bs4 (BeautifulSoup) Error If you are using Anaconda for package management, following should do:

  2. ImportError: No Module Named bs4 (BeautifulSoup)

    To Solve ImportError: No Module Named bs4 (BeautifulSoup) Error If you are using Anaconda for package management, following should do:

Solution 1

If you are using Anaconda for package management, following should do:

conda install -c anaconda beautifulsoup4

Solution 2

Activate the virtualenv, and then install BeautifulSoup4:

$ pip install BeautifulSoup4

When you installed bs4 with easy_install, you installed it system-wide. So your system python can import it, but not your virtualenv python. If you do not need bs4 to be installed in your system python path, uninstall it and keep it in your virtualenv.

Summery

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you? Thank You.

Also, Read