Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
hi,
trying to run example in
https://www.absentdata.com/power-bi/python-machine-learning-in-power-bi/
getting message below.
have python installed and pointed options/settings to folder python installed.
Any thoughts how to resolve.
@po ,
Please check if you have installed the site-packages below:
numpy pandas sklearn scipy
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Thanks for reply.
All these packages installed.DataSource.Error: ADO.NET: Python script error.
Traceback (most recent call last):
File "PythonScriptWrapper.PY", line 14, in <module>
from sklearn.model_selection import train_test_split
File "D:\PYTHON\lib\site-packages\sklearn\model_selection\__init__.py", line 19, in <module>
from ._validation import cross_val_score
File "D:\PYTHON\lib\site-packages\sklearn\model_selection\_validation.py", line 29, in <module>
from ..metrics.scorer import check_scoring, _check_multimetric_scoring
File "D:\PYTHON\lib\site-packages\sklearn\metrics\__init__.py", line 33, in <module>
from . import cluster
@po ,
So this issue is not related with power bi. I guess you have installed sevaral versions of python, please click Environment Variables-> Users Variables-> Path and check which version has been configured to CMD. Also check in which version you have installed the packages above.
Community Support Team _ Jimmy Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Believe 2 versions
1 installed as part of visual studio - guess installed by default as part of vstudio and another d:\python
power bi pointed to D:\python and this in the path and have went to D:\python scripts and ran pip installl for all the packages you mentioned and it says already satisfied thus assuming all installed to area pwer bi needs
@po ,
It's weird. Have you checked if the packages above are in the site-package folder in the "D:\python" version?
Regards,
Jimmy Tao
They are in
D:\PYTHON\Lib\site-packages
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
57 | |
55 | |
55 | |
37 | |
30 |
User | Count |
---|---|
78 | |
64 | |
45 | |
43 | |
40 |