Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I'm working on a Python project in which I scrape data from a website using the requests and BeautifulSoup modules. Yet, I continue to receive the problem message "ModuleNotFoundError: No module called 'bs4'". I attempted to install BeautifulSoup using pip, but it did not appear to work.
import requests
from bs4 import BeautifulSoup
url = 'https://www.example.com'
response = requests.get(url)
soup = BeautifulSoup(response.text, 'html.parser')This is the error message:
ModuleNotFoundError: No module named 'bs4'I attempted pip install beautifulsoup4 in the terminal, but when I try to execute the script, I get the same error message.
Yet, despite my efforts, the outcome is not what I had hoped for. I came across this article that uses the example, but I'm not sure I got it right. Could you please help me?
Solved! Go to Solution.
Hi @quibtisa,
Did these packages host on the same path that you installed the python? If not, have you confirmed power bi and python has enough permissions to access these paths and files? (AFAIK, current it seems not support cloudy path)
How to Get Your Question Answered Quickly
In addition, I'd like to suggest you check the following document about support python package in power bi if helps:
Learn which Python packages are supported - Power BI | Microsoft Learn
Regards,
Xiaoxin Sheng
Hi @quibtisa,
Did these packages host on the same path that you installed the python? If not, have you confirmed power bi and python has enough permissions to access these paths and files? (AFAIK, current it seems not support cloudy path)
How to Get Your Question Answered Quickly
In addition, I'd like to suggest you check the following document about support python package in power bi if helps:
Learn which Python packages are supported - Power BI | Microsoft Learn
Regards,
Xiaoxin Sheng
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 8 | |
| 8 | |
| 4 | |
| 3 | |
| 2 |