Cannot find mxnet.contrib.text

I tried to import the following

from mxnet.contrib import text

but got the following error

from mxnet.contrib import text
ImportError: cannot import name text

any idea how to solve this

Upgrading MXNET helped me resolve the issue.

Write the following on your terminal:

pip install mxnet --pre --upgrade

Just to add a little something in @batool’s answer , when installing via pip first try

pip install mxnet== 

this will produce a message “couldn’t find a version that satisfies requirement …” and a list of all available versions, so then you can do :

pip install mxnet==TheNumberOfVersionYouWantFromTheListAbove

my $0.02