AttributeError: type object 'numpy.ndarray' has no attribute '__array_function__'

后端 未结 2 1069
栀梦
栀梦 2021-01-02 12:38

I upgraded numpy to the latest version and now I am getting following error on importing numpy:

AttributeError: type object \'numpy.ndarray\' has no a

2条回答
  •  情歌与酒
    2021-01-02 13:11

    Uninstall all installs of Numpy using

    pip uninstall numpy
    

    for python3

    pip3 uninstall numpy
    

    You may need to run the uninstall command several times since several versions of numpy may be installed. Then run

    pip install numpy
    

提交回复
热议问题