BS4 module not found - python

Traceback (most recent call last):
File "d:/project.py", line 2, in <module>
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'
Guys any idea why i get this error.
Ive installed bs4 with cmd and pip

Where do i have to install the module i am really confused
Some of them work and some of them dont
For example, bs4 doesnt but tkinter does

Related

Requests module not found

I'm trying to run my python code with the the requests module.
This is the code I use:
import requests
res = requests.get("https://www.goodreads.com/book/review_counts.json", params={"key": "rhcFvMg9fxSBPoN4TCb7hQ", "isbns": "9781632168146"})
print(res.json())
The following is the error that shows up:
Traceback (most recent call last):
File "/Users/jonathankent/Downloads/project1/test.py", line 1, in <module>
import requests
ModuleNotFoundError: No module named 'requests'
If anyone knows what could be causing this or what I could do to solve it I would be very appreciative.
requests module is not part of python built-in libraries so you have to install it yourself from the command line using pip:
pip install requests
if you are on MacOS try pip3 install requests

how to solve "ModuleNotFoundError: No module named 'beautifulsoup4'"?

I'm work in Python Idle.
I installed BeautifulSoup4 with "pip install beautifulsoup4" in Powershell, and it works in Powershell's python.
But when I run in Python Idle
# Read Library
from bs4 import BeautifulSoup
error message said
Traceback (most recent call last):
File "C:/Users/umts1202/Desktop/ML/bs-test1.py", line 2, in <module>
from bs4 import BeautifulSoup
ModuleNotFoundError: No module named 'bs4'
I have no idea what to do. Please help me :(

error when scraping the google search result and prints it

I'm using Python 3.6 and BeautifulSoup is installed in my computer with:
pip install beautifulsoup
How can I treat this:
Traceback (most recent call last): File "I:\application
python\rechere1.py", line 5, in from bs4 import
BeautifulSoup File "I:\application python\bs4.py", line 3, in
from bs4 import BeautifulSoup ImportError: cannot import
name 'BeautifulSoup' >>>

Python/BeautifulSoup Download

I have Python 3.0.1 and beautifulsoup 4.1.0 but when I try and run from bs4 import BeautifulSoup, I receive this error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named bs4
I have read that some of the versions of beautiful soup don't work with certain versions of Python but because I am unfamiliar and haven't used either before I am unsure of which versions I should download.

ImportError: No module named bs4 how fix

I have next python 2.7 (debian) code
import sys
import random
from bs4 import BeautifulSoup
from YandexDiskException import YandexDiskException
from YandexDiskRestClient import YandexDiskRestClient
I try run, but get this message
root#vps-1074211:/tmp/beautifulsoup4-4.4.0# python /var/vah13/untitled/grep.py
Traceback (most recent call last):
File "/var/vah13/untitled/grep.py", line 5, in <module>
from bs4 import BeautifulSoup
ImportError: No module named bs4
how fix it?
I installed
pip install beautifulsoup4
apt-get install python-bs4

Categories

Resources