运行mxnet的测试程序的时候报错如下:

Traceback (most recent call last):
  File "test_rec.py", line 4, in <module>
    import face_model
  File "/media/luckynote/Tool/face-recognition-dl/face_recognition_insightface/face_model.py", line 20, in <module>
    import face_preprocess
  File "/media/luckynote/Tool/face-recognition-dl/face_recognition_insightface/face_preprocess.py", line 4, in <module>
    from skimage import transform as trans
  File "/home/luckynote/anaconda3/envs/retinaface/lib/python2.7/site-packages/skimage/__init__.py", line 168, in <module>
    from .util.dtype import (img_as_float32,
  File "/home/luckynote/anaconda3/envs/retinaface/lib/python2.7/site-packages/skimage/util/__init__.py", line 6, in <module>
    from .apply_parallel import apply_parallel
  File "/home/luckynote/anaconda3/envs/retinaface/lib/python2.7/site-packages/skimage/util/apply_parallel.py", line 8, in <module>
    import dask.array as da
  File "/home/luckynote/.local/lib/python2.7/site-packages/dask/array/__init__.py", line 8, in <module>
    from .routines import (take, choose, argwhere, where, coarsen, insert,
  File "/home/luckynote/.local/lib/python2.7/site-packages/dask/array/routines.py", line 256, in <module>
    @wraps(np.matmul)
  File "/home/luckynote/anaconda3/envs/retinaface/lib/python2.7/functools.py", line 33, in update_wrapper
    setattr(wrapper, attr, getattr(wrapped, attr))
AttributeError: 'numpy.ufunc' object has no attribute '__module__'

经查找是numpy的版本问题。

但mxnet通常与numpy是有版本关联的,因此,先卸载mxnet,再卸载numpy,

而后先安装numpy " pip install numpy==1.14.0 ",再安装mxnet “ pip install mxnet-cu90”,大功告成。

注意:如果依旧出现上述问题,可以换个numpy版本再试试,高版本有可能出现上述问题 ,因而不建议使用最新版本。

【Anaconda-Error】'numpy.ufunc' object has no attribute '__module__'相关推荐

  1. 【无标题】AttributeError: ‘TransposedFont‘ object has no attribute ‘getbbox‘

    Python 运行 Wordcloud的时候出现了这个错误. from wordcloud import WordCloud from PIL import Image import matplotl ...

  2. 【代码error】RuntimeError: 1only batches of spatial targets supported (3D tensors) but got targets of si

    [代码error]RuntimeError: 1only batches of spatial targets supported (3D tensors) but got targets of si ...

  3. Python 保存数组至.mat文件,报错:AttributeError: 'numpy.ndarray' object has no attribute 'items'

    Python保存数组的方式有很多种,如savetxt,但这个函数只能保存一维或二维数组.为了保存高维数组,同时能够在matlab载入,可以使用scipy.io.savemat()函数,例子: impo ...

  4. AttributeError: 'numpy.ndarray' object has no attribute 'value_counts'

    <python机器学习及实践>第二章第一个代码运行报错: AttributeError: 'numpy.ndarray' object has no attribute 'value_co ...

  5. [转载] AttributeError: ‘numpy.ndarray‘ object has no attribute ‘insert‘的解决方法

    参考链接: Python中的numpy.insert AttributeError: 'numpy.ndarray' object  has no attribute 'insert' 代码: imp ...

  6. [转载] python 调用自己的方法报错,numpy.ndarray object has no attribute brighten

    参考链接: Python中的numpy.eye 在使用python写美颜算法时,出现一个bug,AttributeError: 'numpy.ndarray' object has no attrib ...

  7. 利用sns.boxplot绘制箱型图的时候报错:AttributeError: ‘numpy.ndarray‘ object has no attribute ‘boxplot‘

    (1)问题介绍 最近在做一个机器学习入门项目,鸢尾花种类的预测,在利用sns.boxplot()绘制箱型图的时候,程序报错: AttributeError: 'numpy.ndarray' objec ...

  8. import obspy报错‘numpy.int64‘ object has no attribute ‘split‘`

    line = line.split(comment, 1)[0] AttributeError: 'numpy.int64' object has no attribute 'split' impor ...

  9. 如何借助new bing修复 pyfolio: AttributeError: ‘numpy.int64‘ object has no attribute ‘to_pydatetime‘

    如何修复 pyfolio的报错 AttributeError: 'numpy.int64' object has no attribute 'to_pydatetime' 的报错? 最近使用Pytho ...

最新文章

  1. 总是听别人说响应式布局,原来这么简单
  2. Django rest framework 基础
  3. Leaf服务器框架从入门到放弃(一)认识Leaf和安装Leaf环境
  4. Redis使用不当导致应用卡死
  5. UVa10054 The Necklace 欧拉回路
  6. c++11新特性_【C++11新特性】 C++11智能指针之weak_ptr
  7. 卷积过滤器的宽度_卷积神经网络简析
  8. 【JZOJ6225】【20190618】计数
  9. DPDK学习0 -- 学习步骤
  10. 南京航空航天大学陈松灿教授访谈
  11. Spark学习笔记:Spark Streaming与Spark SQL协同工作
  12. 青出于蓝而胜于蓝——揭秘全新的 HWSQL
  13. 自学php多久可以工作_php自学要多久,学php难吗,多久能学会?
  14. Java8 :流式数据处理
  15. 你要的所有数据源都在这里了!
  16. annotation 的方法
  17. F - 郭鑫的难题(三)
  18. 常见的TC测试点(持续更新中)
  19. Leetcode 874. Walking Robot Simulation
  20. 麦克林排名计算机,转需!2021年加拿大麦克林杂志排名大学院校推荐

热门文章

  1. 阿里云Tech Insight 企业迁云实战专场强势来袭!
  2. 我国5G有望引领全球 2020年前将商用
  3. centos虚拟机根目录空间分配
  4. 有关sed命令的用法
  5. Python中的traceback模块
  6. python调用c的配置文件_python调用c
  7. SSH putty Disconnected: Server protocol violation: unexpected SSH2_MSG_UNIMPLEMENTED packet
  8. 各linux版本比较
  9. 关于jstl在tomcat5和tomcat6的部署
  10. kali linux grub 安装失败,kali linux2 安装问题总结