Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot install BeautifulSoup for python 3.6

I have spent the past 45 minutes hopelessly trying to run:

from bs4 import BeautifulSoup

But to no avail. I have tried the commands:

python -m pip install beautifulsoup4

where it says:

Requirement already satisfied: beautifulsoup4 in c:\python27\lib\site-packages

I have tried:

pip3 install beautifulsoup4

where it says the same.

I have tried:

pip install beautifulsoup4

Same thing.

I have looked all over stackoverflow, youtube, I am driving myself insane trying to figure this out. I have no idea what to do, please help me.

When I try to run my program main.py with the following code:

from bs4 import BeautifulSoup

With py -3 main.py, I get the error:

ModuleNotFoundError: No module named 'bs4'

Please please please please help me.

I have tried the method proposed at BeautifulSoup4 can't be installed in python3.5 on Windows7 but to no avail.

like image 880
Cooby Booby Avatar asked May 07 '17 18:05

Cooby Booby


2 Answers

Now there is beautifulsoup4 for Python 3.6. It's the same, am using it this way on my webcrawl project.

Just add the beautifulsoup4 module to the project. Then try the line

from bs4 import BeautifulSoup
like image 183
Darshan Avatar answered Oct 16 '22 04:10

Darshan


As of now the module is not getting loaded to python3.6 Try This

python3.6 -m pip install beautifulsoup4
like image 21
shahin Avatar answered Oct 16 '22 02:10

shahin