paddle 安装报错

2020-08-04  本文已影响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文件后,重新启动,导入。无异常。

上一篇下一篇

猜你喜欢

热点阅读