When we install beautiful soup 4 in PIP, we will report an error when we import beautiful soup 4: no module named’BS4′
pip install beautifulsoup4
Then, we write this in the python script:
from bs4 import BeautifulSoup4
The above error “no module named’BS4′” is reported during execution
After reading some methods on the Internet, I finally solved the problem in this way (on the premise that I used pychar)
Step 1:
Step 2:
Step 3:
Step 4:
Step 5:
Step 6: If you execute the python program again, no error will be reported
Similar Posts:
- Importerror: no module named BS4 error resolution
- After installing BS4 in Python, pychar still reports module not found error: no module named ‘BS4’
- ImportError: No module named ‘requests’
- Importerror: no module named BS4 error resolution
- Pycharm introduces numpy error: ImportError: Importing the multiarray numpy extension module failed. Most likely you are trying to import a failed build of numpy.
- Module not founderror: no module named ‘paramiko’ in Python 3.7.2
- MAC OS Install opencv ModuleNotFoundError: No module named ‘cv2’
- Python3 Use urlliburlopen error EOF occurred in violation of protocol (_ssl.c:841)
- How to Solve Centos Yum Error: No module named yum
- from bs4 import BeautifulSoup Error [How to Solve]