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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Prakash1050
Helper II
Helper II

I can't use word2number library in fabric notebook

Hi All,

       I'm using fabric notebook and import word2number method from python.

 

Prakash1050_0-1715751314366.png

and I'm getting this error

 

Prakash1050_1-1715751362854.png

 

I'm also install word2number library in my command prompt also. But, this error showing again and again.

 

How to resolve this? Please help me.

Thanks in advance.

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

Hi @Prakash1050 ,

 

It seems like the library isn't installed in the environment that your notebook is running in, despite you having installed it via the command prompt on your local machine.

 You can do this by running the following command in a cell at the beginning of your notebook:

%pip install word2number

Please note, after running this command, it might be necessary to restart your notebook's kernel for the changes to take effect. 

 

For more details, please refer: Tutorial: Create, evaluate, and score a text classification model - Microsoft Fabric | Microsoft Lea...

 

Best Regards,

Neeko Tang

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-tangjie-msft
Community Support
Community Support

Hi @Prakash1050 ,

 

It seems like the library isn't installed in the environment that your notebook is running in, despite you having installed it via the command prompt on your local machine.

 You can do this by running the following command in a cell at the beginning of your notebook:

%pip install word2number

Please note, after running this command, it might be necessary to restart your notebook's kernel for the changes to take effect. 

 

For more details, please refer: Tutorial: Create, evaluate, and score a text classification model - Microsoft Fabric | Microsoft Lea...

 

Best Regards,

Neeko Tang

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors