Install BeautifulSoup on python3.5, Mac , ImportError:No module named 'bs4'

I want to install BeautifulSoup, I use python3.5 on Mac I have tried many methods: I try to download beautifulsoup4-4.4.1.tar.gz from official website,and in terminal type:

$ cd [my path]

$ sudo python3.5 ./setup.py install

I also tried:

$ sudo pip3 install beautifulsoup4

and the terminal says:

Requirement already satisfied (use --upgrade to upgrade): beautifulsoup4 in /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/beautifulsoup4-4.4.1-py3.5.egg

So I think it is already installed, but when In python3 I type (I use pycharm)

from bs4 import BeautifulSoup

It says

Traceback (most recent call last): File "", line 1, in File "/Applications/PyCharm Edu.app/Contents/helpers/pydev/pydev_import_hook.py", line 21, in do_import module = self._system_import(name, *args, **kwargs) ImportError: No module named 'bs4'

Did I install bs4 properly? How can I import bs4 into python3?

Answers


I have solved this porblem!

just as @Martjin Pieters said,PyCharm can install packages by Menu Operation´╝Ü PyCharm -> Preference -> Project -> Project interpreter Check if you are using python3 and click "+" at the bottom (If you see BeatifulSoup in the frame, click "-" to uninstall it first) then you can install it properly

see this picture


Need Your Help

bindings in Interface Builder

xcode cocoa xcode3.2

I want to have a button where if I click it, then some text is displayed that says "you clicked the button." I know how to do this using IBOutlet and IBAction. Can it be done with bindings? If so, ...

IE7 not showing SVG contents instead of that its opening the content as an Office document

internet-explorer-7 svg

Hi I am facing an issue with IE7 browser if i launch any URL with .svg or any page with svg content its asking for file download and trying to open with MS Office.