Forum Discussion
Power BI Python with Anaconda missing dependency
- Anonymous7 years ago
The Python environment I'm referring to already has the required dependencies installed. I was suspecting the error to be caused by the activate.bat file not activating the Python environment in Anaconda, prior to running the script. However, I managed to resolve my problem simply by updating Python in Anaconda Prompt i.e.
conda upgrade python
WinPython solution with a minor edit.
Step by step procedure:
- Download last version of Winpython from : https://winpython.github.io/
- Install Winpython on C: \
- In Power BI Desktop, select File > Options and settings > Options > Global > Python scripting. Set
Python home directory as something like C:\WPy64-3770\python-3.7.7.amd64
- Optional: Restart Power BI
Hi Timo,
I tried to set it up with the home directory at C:[...]\WPy64-3940\python-3.9.4.amd64 but got a note saying that this is an invalid path. Any ideas?
In general and just because I'm new to this, what's the appropriate way to get Power BI able to run Python scripts (eg the one here).
All necessary packages/libraries (pandas, numpy, matplotlib) are installed however, I am still unable to work with it.
Any help would be really appreciated!
Kostas