使用paddlehub出错
#2281
Replies: 1 comment 1 reply
-
换一个吧,hub已经不维护了 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
不管是import paddlehub 还是直接执行hub命令都会同这个错误
File "/usr/local/vipcloud/data/data1/xkqWork/tools/conda3/envs/aiproject/bin/hub", line 5, in
from paddlehub.commands.utils import execute
File "/usr/local/vipcloud/data/data1/xkqWork/tools/conda3/envs/aiproject/lib/python3.7/site-packages/paddlehub/init.py", line 54, in
from paddlehub.compat.task.text_generation_task import TextGenerationTask
File "/usr/local/vipcloud/data/data1/xkqWork/tools/conda3/envs/aiproject/lib/python3.7/site-packages/paddlehub/compat/task/text_generation_task.py", line 22, in
from paddle.fluid.layers import RNNCell, LSTMCell, rnn, BeamSearchDecoder, dynamic_decode
ImportError: cannot import name 'RNNCell' from 'paddle.fluid.layers'
在网上找都没有对应的答案
我的
Paddle版本: 2.5.0
Python版本: 3.7.16 (default, Jan 17 2023, 22:20:44)
[GCC 11.2.0]
是否支持GPU: 支持
CUDA版本: 10.2
cuDNN版本: 7605
paddleocr版本: 2.6.1.3
安装的paddlehub版本
paddlehub-2.3.1
并且我都找不到一个paddlehub和PaddlePaddle的版本对应表
Beta Was this translation helpful? Give feedback.
All reactions