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

ModuleNotFoundError: No module named 'paddle.fluid' #970

Open
tigflanker opened this issue Jan 3, 2024 · 5 comments
Open

ModuleNotFoundError: No module named 'paddle.fluid' #970

tigflanker opened this issue Jan 3, 2024 · 5 comments

Comments

@tigflanker
Copy link

In [2]: import paddle.fluid

ModuleNotFoundError Traceback (most recent call last)
Cell In[2], line 1
----> 1 import paddle.fluid

ModuleNotFoundError: No module named 'paddle.fluid'

↑↑↑↑↑↑↑↑↑↑

最新版paddle好像把fluid不知道移动到哪里去了,导致
https://github.com/PaddlePaddle/book/blob/develop/05.recommender_system/README.cn.md#%E6%A8%A1%E5%9E%8B%E9%85%8D%E7%BD%AE%E8%AF%B4%E6%98%8E
都跑不通

@tigflanker
Copy link
Author

从paddle==2.6.0降级到2.5.0,已经ok了

@tigflanker
Copy link
Author

----> 6 uid = layers.data(name='user_id', shape=[1], dtype='int64')
... ...

AttributeError: module 'paddle.fluid.layers' has no attribute 'data'

运行到下面又出了兼容性问题

@tigflanker tigflanker reopened this Jan 3, 2024
@tigflanker
Copy link
Author

降级到2.4.0后,最后出了个兼容问题:No module named 'paddle.utils.plot'
这里的plot,从2.1.0~2.4.0里面都找不到

@danleifeng
Copy link
Collaborator

您好,paddle升级做了一些不兼容升级,这个例子可以继续保持用paddle2.3版本,感谢

@magicleo
Copy link

@danleifeng paddleRec推荐的paddle Serving有2年没更新了,执行paddle_serving_client.convert也是要求paddle2.3版本,请问咱们有什么其他的serving部署方式推荐吗?

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