美文网首页
paddle 安装报错

paddle 安装报错

作者: 馨不累 | 来源:发表于2020-08-04 22:12 被阅读0次

按照飞桨快速安装指南操作 下载了paddle 安装包
在测试时出现报错
import paddle

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/python3/lib/python3.6/site-packages/paddle/__init__.py", line 39, in <module>
    from . import incubate
  File "/usr/local/python3/lib/python3.6/site-packages/paddle/incubate/__init__.py", line 15, in <module>
    from . import hapi
  File "/usr/local/python3/lib/python3.6/site-packages/paddle/incubate/hapi/__init__.py", line 16, in <module>
    from . import vision
  File "/usr/local/python3/lib/python3.6/site-packages/paddle/incubate/hapi/vision/__init__.py", line 15, in <module>
    from . import transforms
  File "/usr/local/python3/lib/python3.6/site-packages/paddle/incubate/hapi/vision/transforms/__init__.py", line 15, in <module>
    from . import transforms
  File "/usr/local/python3/lib/python3.6/site-packages/paddle/incubate/hapi/vision/transforms/transforms.py", line 18, in <module>
    import cv2
  File "/usr/local/python3/lib/python3.6/site-packages/cv2/__init__.py", line 5, in <module>
    from .cv2 import *
ImportError: libSM.so.6: cannot open shared object file: No such file or directory

解决该报错方法
该问题最开始是linux的lib包不对
https://blog.csdn.net/qq_24798295/article/details/90240666
在安装完一个包后(如libSM.so.6)
再次在放入jupyter notebook的代码块中导入,会报NameError:未定义名称“批处理”。
关闭ipynb文件后,重新启动,导入,会报下一个包错误如(libXrender.so.1)

三个包全部安装完后,关闭ipynb文件后,重新启动,导入。无异常。

相关文章

网友评论

      本文标题:paddle 安装报错

      本文链接:https://www.haomeiwen.com/subject/hasgrktx.html