I am using this python version
Python 3.7.0
And this pip version
pip 18.0
And then I install the bs4 package
pip install beautifulsoup4
pip install bs4
This all works (without errors) but now when I run a python script with:
from bs4 import BeautifulSoup
I get the following error:
ModuleNotFoundError: No module named 'bs4'
Any thoughts on what goes wrong here?
I am assuming you are trying to install BeautifulSoup4. If so, try:
pip install beautifulsoup4
and then you will be able to import bs4 using:
import bs4
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.