Python Forum
Why can't I import bs4? - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Why can't I import bs4? (/thread-19951.html)



Why can't I import bs4? - kmkim319 - Jul-21-2019

An error message says, "You are trying to run the Python 2 version of BS under Python 3."
I have no idea how to make BS4 work on my Python 3.


RE: Why can't I import bs4? - metulburr - Jul-21-2019

Install BeautifulSoup with pip instead of whatever way you did.

pip3 install bs4

Output:
metulburr@ubuntu:~$ pip3 install bs4 Requirement already satisfied: bs4 in /usr/local/lib/python3.6/site-packages Requirement already satisfied: beautifulsoup4 in /usr/local/lib/python3.6/site-packages (from bs4)



RE: Why can't I import bs4? - kmkim319 - Jul-23-2019

Thank you so much for the help!