-->
当前位置:首页 > DayDayUp > 正文内容

paddle报错找不到paddle.fluid

Luz12个月前 (01-03)DayDayUp1468

报错内容

Traceback (most recent call last):
  File "/root/1216/anxing/bin/paddlespeech", line 5, in <module>
    from paddlespeech.cli.entry import _execute
  File "/root/1216/anxing/lib/python3.11/site-packages/paddlespeech/cli/__init__.py", line 16, in <module>
    from .asr import ASRExecutor
  File "/root/1216/anxing/lib/python3.11/site-packages/paddlespeech/cli/asr/__init__.py", line 14, in <module>
    from .infer import ASRExecutor
  File "/root/1216/anxing/lib/python3.11/site-packages/paddlespeech/cli/asr/infer.py", line 36, in <module>
    from paddlespeech.s2t.frontend.featurizer.text_featurizer import TextFeaturizer
  File "/root/1216/anxing/lib/python3.11/site-packages/paddlespeech/s2t/__init__.py", line 21, in <module>
    from paddle.fluid import core
ModuleNotFoundError: No module named 'paddle.fluid'

image.png



解决方案

paddle降级到2.5.2,原来是2.6.0

(anxing) root@raspberrypi:~/1216# pip install paddlepaddle==2.5.2 -i https://mirror.baidu.com/pypi/simple
Looking in indexes: https://mirror.baidu.com/pypi/simple, https://www.piwheels.org/simple
Collecting paddlepaddle==2.5.2
  Downloading https://mirror.baidu.com/pypi/packages/c0/65/823bf4913b8284f14d4b120390835e54a5a1a9f00bbd62b82e7bc1b5db84/paddlepaddle-2.5.2-cp311-cp311-manylinux2014_aarch64.whl (59.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 59.2/59.2 MB 1.3 MB/s eta 0:00:00
Requirement already satisfied: httpx in ./anxing/lib/python3.11/site-packages (from paddlepaddle==2.5.2) (0.26.0)
Requirement already satisfied: numpy>=1.13 in ./anxing/lib/python3.11/site-packages (from paddlepaddle==2.5.2) (1.23.5)
Requirement already satisfied: Pillow in ./anxing/lib/python3.11/site-packages (from paddlepaddle==2.5.2) (10.2.0)
Requirement already satisfied: decorator in ./anxing/lib/python3.11/site-packages (from paddlepaddle==2.5.2) (5.1.1)
Requirement already satisfied: astor in ./anxing/lib/python3.11/site-packages (from paddlepaddle==2.5.2) (0.8.1)
Requirement already satisfied: opt-einsum==3.3.0 in ./anxing/lib/python3.11/site-packages (from paddlepaddle==2.5.2) (3.3.0)
Requirement already satisfied: protobuf>=3.20.2 in ./anxing/lib/python3.11/site-packages (from paddlepaddle==2.5.2) (3.20.2)
Requirement already satisfied: anyio in ./anxing/lib/python3.11/site-packages (from httpx->paddlepaddle==2.5.2) (4.2.0)
Requirement already satisfied: certifi in ./anxing/lib/python3.11/site-packages (from httpx->paddlepaddle==2.5.2) (2023.11.17)
Requirement already satisfied: httpcore==1.* in ./anxing/lib/python3.11/site-packages (from httpx->paddlepaddle==2.5.2) (1.0.2)
Requirement already satisfied: idna in ./anxing/lib/python3.11/site-packages (from httpx->paddlepaddle==2.5.2) (3.6)
Requirement already satisfied: sniffio in ./anxing/lib/python3.11/site-packages (from httpx->paddlepaddle==2.5.2) (1.3.0)
Requirement already satisfied: h11<0.15,>=0.13 in ./anxing/lib/python3.11/site-packages (from httpcore==1.*->httpx->paddlepaddle==2.5.2) (0.14.0)
Installing collected packages: paddlepaddle
  Attempting uninstall: paddlepaddle
    Found existing installation: paddlepaddle 2.6.0
    Uninstalling paddlepaddle-2.6.0:
      Successfully uninstalled paddlepaddle-2.6.0
Successfully installed paddlepaddle-2.5.2

正常了

image.png

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。