Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问使用的paddle和paddlehub的版本是那些啊 #5

Open
hello-word-1 opened this issue Jul 5, 2023 · 2 comments
Open

请问使用的paddle和paddlehub的版本是那些啊 #5

hello-word-1 opened this issue Jul 5, 2023 · 2 comments

Comments

@hello-word-1
Copy link

D:\tool\anaconda3\envs\ernie-cpu\lib\site-packages_distutils_hack_init_.py:33: UserWarning: Setuptools is replacing distutils.
warnings.warn("Setuptools is replacing distutils.")
Traceback (most recent call last):
File "D:/lenovo/python-project/paddlehub_ernie_emotion_analysis/finetune_ernie.py", line 2, in
import paddlehub as hub
File "D:\tool\anaconda3\envs\ernie-cpu\lib\site-packages\paddlehub_init_.py", line 54, in
from paddlehub.compat.task.text_generation_task import TextGenerationTask
File "D:\tool\anaconda3\envs\ernie-cpu\lib\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' (D:\tool\anaconda3\envs\ernie-cpu\lib\site-packages\paddle\fluid\layers_init_.py)

我用python3.7 paddlehub2.5.0

@Five-Meng
Copy link

同问

@zhenhao-huang
Copy link
Owner

记不太清,可能是1.8.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants