欢迎访问 生活随笔!

生活随笔

当前位置: 首页 > 编程资源 > 编程问答 >内容正文

编程问答

成功解决AttributeError: module tensorflow.sets has no attribute intersection

发布时间:2025/3/21 编程问答 44 豆豆
生活随笔 收集整理的这篇文章主要介绍了 成功解决AttributeError: module tensorflow.sets has no attribute intersection 小编觉得挺不错的,现在分享给大家,帮大家做个参考.

成功解决AttributeError: module tensorflow.sets   has no attribute intersection

目录

解决问题

解决思路

解决方法

T1、更新 tensorflow-gpu

T2、更新pixellib库


解决问题

AttributeError: module tensorflow.sets   has no attribute intersection

解决思路

属性错误:模块tensorflow.sets没有intersection属性

解决方法

版本问题造成的,升级tensorflow版本即可!

T1、更新 tensorflow-gpu

pip install --upgrade tensorflow-gpu

因为下载速度慢,改为
pip install --user tensorflow_gpu-2.2.0-cp36-cp36m-win_amd64.whl

最后,代码运行成功!

T2、更新pixellib库

pip install --upgrade pixellib

总结

以上是生活随笔为你收集整理的成功解决AttributeError: module tensorflow.sets has no attribute intersection的全部内容,希望文章能够帮你解决所遇到的问题。

如果觉得生活随笔网站内容还不错,欢迎将生活随笔推荐给好友。