Forum Discussion
Python Integration Error
Anonymous ,
Do you know what version of Python your Anaconda environment is using? I was running into issues importing packages with 3.6 and 3.7.
I was able to get around the error by creating a new conda env with Python 3.5:
conda create -n py35 anaconda python=3.5
Then pip installing relevant packages (I had issues with PowerBI recognizing conda installs):
conda activate py35
pip install matplotlib
pip install pandas
After this is complete, you need to point PowerBI to the new env.
Including steps for those less familiar:
File -> Options and Settings -> Options -> Python Scripting
Then add the Path to your new Env. Mine looks like:
"C:\ProgramData\Anaconda3\envs\py35"
This thread tipped me off to the issue:
Let me know if you have questions.
Hi Anonymous ,
Your solution did the job for me.
However I had to have an extra step: copying the environemnt folder from the C:\Program Files to another location, since the Python Script options in Power BI Desktop doesn't allow browsing to the C:\Program Files (probably IT policy).
Do you know how to configure the path in which the new env will be created within conda create?
Thanks,
Barak