ImportError: No module named bs4 in django
<p>I am learning Django and I was working with bs4 in PyCharm on mac. I am using Python3 with Django which also has bs4 installed and it can be seen below.
<a href="http://i.stack.imgur.com/fRQP7.png" rel="nofollow"><img src="http://i.stack.imgur.com/fRQP7.png" alt="enter image description here"></a></p>

<p>But when I run the project, it throws me an error saying bs4 does not exist which can be seen below.
<a href="http://i.stack.imgur.com/x6vy3.png" rel="nofollow"><img src="http://i.stack.imgur.com/x6vy3.png" alt="enter image description here"></a></p>

<p>I have tried a lot of ways and it couldn't get it to work. Help</p>

<p>ok first thing, in your python 3 environment you have installed bs4, but in your python 2.7, you probably do not have. As you can see in your attached second screen, django is running on python 2.7.</p>

<p>I recommend using virtual environment, where you can have all of your dependencies personalized for single project. In fact, every project you are working on, should have its own separate virtualenv. </p>

python django beautifulsoup pycharm bs4