Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installing module beautifulsoup4

Tags:

my problem is with installing module "beautifulsoup4". In pycharm i installed the package correctly but when im trying to import the module it says no module found with that name.and i searched the internet for solution and i found a way for that . It says in terminal use this command :

"pip install beautifulsoup4 "

But still pycharm or id le shell cant find the module.even i tried the command :

"pip install beautifulsoup4 --upgrade"

and terminal says its already up-to date.

like image 217
Babak Abadkheir Avatar asked Aug 30 '16 08:08

Babak Abadkheir


2 Answers

I think the problem is with your version of python selected in pycharm and the version of python you installed BeautifulSoup

If using python3

pip3 install BeautifulSoup

or

pip3 install bs4

in case of python2 replace pip3 with pip

try to change python interpreter in pycharm settings.

alternatively try ( only for Ubuntu and Like Linux) I can't remember the exact package. try

apt-get install python3-bs4

or

apt-get python3-BeautifulSoup

again do it with python if you want for python2

like image 174
Sidhin S Thomas Avatar answered Sep 25 '22 16:09

Sidhin S Thomas


use pip3:

pip3 install beautifulsoup4
like image 35
Alireza Afzal Aghaei Avatar answered Sep 25 '22 16:09

Alireza Afzal Aghaei