Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
69 | |
68 | |
40 | |
29 | |
26 |
User | Count |
---|---|
87 | |
49 | |
45 | |
38 | |
37 |