You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: