Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Thomas94401
Helper I
Helper I

ADO.NET Power BI with Python Anaconda

Hello, 

 

I would like to write Python scripts in Power BI

I'm using a virtual Anaconda environment to connect Power BI with Python.

 

Unfortunely, I tested different versions of Python (3.6, 3.7) but it doesn't work. I always get the same error... Could you help me?

 

I tried "import pandas" as a Python script

#####

Détails : « ADO.NET : Ρỳŧĥόņ š¢ѓĭρŧ εŕřŏŕ.
<pi>Traceback (most recent call last):
File "PythonScriptWrapper.PY", line 2, in <module>
import os, pandas, matplotlib
File "C:\Users\Users\Anaconda3\envs\env_pbi_2\lib\site-packages\pandas\__init__.py", line 17, in <module>
"Unable to import required dependencies:\n" + "\n".join(missing_dependencies)
ImportError: Unable to import required dependencies:
numpy:

IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!

Importing the numpy C-extensions failed. This error can happen for
many reasons, often due to issues with your setup or how NumPy was
installed.

We have compiled some common reasons and troubleshooting tips at:

https://numpy.org/devdocs/user/troubleshooting-importerror.html

Please note and check the following:

* The Python version is: Python3.7 from "C:\Users\Users\Anaconda3\envs\env_pbi_2\python.exe"
* The NumPy version is: "1.18.4"

and make sure that they are the versions you expect.
Please carefully study the documentation linked above for further help.

Original error was: DLL load failed: Le module spécifié est introuvable.

</pi> »

####

 

Thanks in advance !

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Thomas94401 , I installed anaconda python env. And Used that in power bi.

In the description of the video, I have given the links to the problem and solution, refer if those can help

 

How to make Python work with Power BI: https://youtu.be/5D0BkNsu5CM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Thomas94401 , I installed anaconda python env. And Used that in power bi.

In the description of the video, I have given the links to the problem and solution, refer if those can help

 

How to make Python work with Power BI: https://youtu.be/5D0BkNsu5CM

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors