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
Rohan231
Regular Visitor

Script Runtime Error: ModuleNotFoundError: No module named 'shap'

I am trying to plot a shap plot using "SHAP" library in Power BI. In Power BI desktop it working perfectly fine, but in Power BI Service it is giving me following error message.
Script Runtime Error
ModuleNotFoundError: No module named 'shap'.

 

Screenshot_20221102_100818.png

 

Details about the error:

Activity ID: b5c8f9ab-3bc7-47cc-8bcd-832ed5ef7ed0
Request ID: 1fdb1a0c-4777-425a-930f-cfe8e887ec11
Correlation ID: f5fe634f-4b1e-e375-4859-48255c898194
Time: Wed Nov 02 2022 09:57:58 GMT+0530 (India Standard Time)
Service version: 13.0.19357.55
Client version: 2210.4.10658-train
Cluster URI: https://wabi-canada-central-b-primary-redirect.analysis.windows.net/

1 ACCEPTED SOLUTION
v-yinliw-msft
Community Support
Community Support

Hi @Rohan231 ,

 

It looks like you're planning to create visuals in Python.

But the SHAP library is not supported in the Power BI Service.

vyinliwmsft_0-1667451853112.png

 

For more information, you can refer these documentations:

Learn which Python packages are supported - Power BI | Microsoft Learn

Python visualizations in Power BI Service | Microsoft Power BI Blog | Microsoft Power BI

 

Hope this helps you.

 

Best Regards,

Community Support Team _Yinliw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-yinliw-msft
Community Support
Community Support

Hi @Rohan231 ,

 

It looks like you're planning to create visuals in Python.

But the SHAP library is not supported in the Power BI Service.

vyinliwmsft_0-1667451853112.png

 

For more information, you can refer these documentations:

Learn which Python packages are supported - Power BI | Microsoft Learn

Python visualizations in Power BI Service | Microsoft Power BI Blog | Microsoft Power BI

 

Hope this helps you.

 

Best Regards,

Community Support Team _Yinliw

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 Solution Authors