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
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?
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