报错:
$ python
Python 3.7.7 (default, Mar 26 2020, 15:48:22)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import mxnet as mx
>>> mx.cpuAttributeError: module 'mxnet' has no attribute '__version__'>>> mx.__version__
>
AttributeError: module 'mxnet' has no attribute 'cpu'>>> from mxnet import nd
Traceback (most recent call last):File "<stdin>", line 1, in <module>
ImportError: cannot import name 'nd' from 'mxnet' (unknown location)
解决:
可能是mxnet损坏了,卸载然后 重装一下。
$ pip uninstall mxnet-cu101
$ pip install mxnet-cu101