Forum Discussion
Error when connecting python to PBI
- Anonymous7 years ago
As I found out yestreday the issue was due to Power Bi not supporting Python 3.7. i had to created new env for py36 and it worked form there!
Thank you
is you PATH environment match what you have in your options?
to check your environement:
1) Open the Python Shell and
2) type:
import sys
print(sys.exec_prefix)

Yes it is the same :
- v-jiascu-msft7 years agoMicrosoft Employee
Hi Anonymous,
Since you have two different release of Python, I'm afraid the Numpy is in Python37 rather than in the Anaconda. Please check out. You can do it like below.
pip list -v
Best Regards,
Dale- Anonymous7 years agoNot applicable
As I found out yestreday the issue was due to Power Bi not supporting Python 3.7. i had to created new env for py36 and it worked form there!
Thank you
- Anonymous6 years agoNot applicable
Hi,
I have installed Python3.6 together with pandas, numpy in the same folder but this error below still persist.
What else could have caused this error, please advise.
DataSource.Error: ADO.NET: Python script error.
Traceback (most recent call last):
File "PythonScriptWrapper.PY", line 2, in <module>
import os, pandas, matplotlib
ModuleNotFoundError: No module named 'matplotlib'Details:
DataSourceKind=Python
DataSourcePath=Python
Message=Python script error.
Traceback (most recent call last):
File "PythonScriptWrapper.PY", line 2, in <module>
import os, pandas, matplotlib
ModuleNotFoundError: No module named 'matplotlib'ErrorCode=-2147467259
ExceptionType=Microsoft.PowerBI.Scripting.Python.Exceptions.PythonScriptRuntimeException
