Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
i need to use the httpx package but it fails in fabric. is there i can update the python envriment to include this package.
Thanks
Solved! Go to Solution.
Hi @Nikhil234
Have you considered using environments? See https://learn.microsoft.com/en-us/fabric/data-engineering/create-and-use-environment
You can add the required library in your environment and then attach the environment either on workspace- or notebook-level to be used in your code. Using this environment should then enable importing the library in the notebook without executing pip install each time.
Hope this helps. 🙂
Hi @Nikhil234
Have you considered using environments? See https://learn.microsoft.com/en-us/fabric/data-engineering/create-and-use-environment
You can add the required library in your environment and then attach the environment either on workspace- or notebook-level to be used in your code. Using this environment should then enable importing the library in the notebook without executing pip install each time.
Hope this helps. 🙂
Hi @Nikhil234 ,
I tested installing and calling it directly in Notebook interactive environment and it worked. Could you give it a try?
pip install httpx
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
This work but it must be re run each session. is there anyway to make it permenant
Hi @Nikhil234 ,
From the previous description you have created a customized environment. Make sure you have saved and published the environment configuration:
The publish consumes some time and after success you will get a success message in the alert. Please check it.
Check that httpx is installed after restarting the session:
The call succeeded.
Best Regards,
Gao
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!
How to get your questions answered quickly -- How to provide sample data in the Power BI Forum
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Fabric update to learn about new features.
| User | Count |
|---|---|
| 14 | |
| 7 | |
| 2 | |
| 2 | |
| 2 |