Search code examples
pythonpandaspowerbi

Unable to connect python script in PowerBI


I have imported data into PowerBI, I am now trying to execute some python scripting on the imported data, but I get the above error. Please note that I have installed both numpy and pandas through the pip install function in cmd.

ERROR


Solution

  • That isn’t a valid Python home directory path. Try browsing to a folder where Python is installed.

    I can think of 2 possibilities of you getting the above error, either you haven’t installed Python in your C Drive, or you are trying to browse the path from Start Menu and copying the same path in the directory which will eventually give the above error as that’s not the exact path of your python.

    Try to locate the folder in your respective directory where you have downloaded the python with a naming convention of Python39 or Python310 (based on your Python version) as shown below.

    enter image description here