Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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 !
Solved! Go to Solution.
@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
@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
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 58 | |
| 45 | |
| 40 | |
| 21 | |
| 18 |