Tag Archives: MXNet Error

[Solved] MXNet Error: ImportError: cannot import name _LIB

Reason: it should be that there are too many installation files, too many versions and chaotic installation of PIP and python in the system, so those unnecessary files need to be deleted

Solution: clean up the PIP installation location (operation in docker environment)

apt-get install python-pip
find/-name pip

Delete all folders output by the command, then uninstall PIP and reinstall it

apt-get remove python-pip

apt-get install python-pip

Check it again

find/-name pip

The correct should be as follows

The first folder should not matter. The following two folders must not be too many. Then install mxnet, and there will be no error when importing