While integrating Anconda and PowerBI the error people at first attempt encounter is: DataSource.Error: ADO.NET: Python script error. Traceback (most recent call last): File "PythonScriptWrapper.PY", line 2, in <module> import os, pandas, matplotlib.pyplot File "C:\Users\mm\AppData\Local\Continuum\anaconda3\lib\site-packages\pandas\__init__.py", line 19, in <module> "Missing required dependencies {0}".format(missing_dependencies)) ImportError: Missing required dependencies ['numpy'] Details: DataSourceKind=Python ... The issue you are facing is of the Power BI and Anaconda integration. You have to follow the below steps that link Anaconda with the Power BI. Check that PowerBI is configured to use Python. Go to "File" >> "Options and Settings" >> "Options" >> "Python Scripting" Open the Anaconda Prompt: Then, you have to go to the Conda Environment that you want to use in PowerBI. Am having an environment 'temp', so I activate it first in the 'Anaconda Prompt': (base) C:\Users\ashish>conda activate temp Then I go to the directory having the "PowerBI" executable file in the installation folder: (temp) C:\Users\ashish>cd "C:\Program Files\Microsoft Power BI Desktop\bin" Then, I launch PowerBI from the Prompt: (temp) C:\Program Files\Microsoft Power BI Desktop\bin>PBIDesktop.exe This fixes the NumPy error you are getting. If you want any other package to use with PowerBI, install that package in the respective "Conda Environment" (in my case it is "temp"). Make sure the Python home directory (Anaconda3) has been added to the 'Power BI Desktop' global options in the Python scripting section too.
Sunday, November 1, 2020
Integration of Anaconda and PowerBI Desktop
Labels:
Anaconda,
PowerBI,
Python,
Technology
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment