Solved! Go to Solution.
Hi @thuantv ,
According to the error message, you may install a package named "mkl-service", and then see if there will be other errors.
There are also several points you may considerate for the Python data source:
1.Try to install Python on your local machine, download the latest version of Python from the Python website .
2.Install required Python packages,
pip install pandas
pip install matplotlib
3.Go to File > Options and settings > Options > Python scripting, enable Python scripting .
4.When setting the working directory within the Python script, you must define a full path to the working directory, rather than a relative path
5.When publish to Power BI Service, to refresh the Python data source, you may need to install the on premise data gateway (personal mode) .
For reference:
Run Python scripts in Power BI Desktop
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You probably already have all of the necessary modules properly installed, especially if you can use them outside of Power BI.
SO......., Under options and settings, in Python Scripting, check your Python home directory.
I had to change mine from C:\Users\<......my user name....>\AppData\Local\Programs\Python\Python39
to C:\Users\<......my user name....>\AppData\Local\Programs\Python\Python38-32
Hi @thuantv ,
According to the error message, you may install a package named "mkl-service", and then see if there will be other errors.
There are also several points you may considerate for the Python data source:
1.Try to install Python on your local machine, download the latest version of Python from the Python website .
2.Install required Python packages,
pip install pandas
pip install matplotlib
3.Go to File > Options and settings > Options > Python scripting, enable Python scripting .
4.When setting the working directory within the Python script, you must define a full path to the working directory, rather than a relative path
5.When publish to Power BI Service, to refresh the Python data source, you may need to install the on premise data gateway (personal mode) .
For reference:
Run Python scripts in Power BI Desktop
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@thuantv , I doubt python installation is not complete. Install the required libraries.
Few doc about setup
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-python-scripts
https://en.blog.businessdecision.com/how-to-use-the-python-integrator-in-powerbi/
https://towardsdatascience.com/using-python-in-power-bi-ee95a6b71443
https://powerbi.microsoft.com/en-us/blog/python-visualizations-in-power-bi-service/
https://powerbi.microsoft.com/en-us/blog/python-visualizations-in-power-bi-service/
https://www.ahaapps.com/microsoft-power-bi-service-with-python-visualizations/
@thuantv - Seems like you are missing a package installation, specifically, "mkl-service"
User | Count |
---|---|
106 | |
82 | |
72 | |
48 | |
48 |
User | Count |
---|---|
155 | |
91 | |
82 | |
69 | |
67 |