Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Why can't I import bs4?
#1
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.
Reply
#2
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)
Recommended Tutorials:
Reply
#3
Thank you so much for the help!
Reply


Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020