安装tensorflow2023-03-30

安装连接:

https://blog.csdn.net/qq_45156353/article/details/124713124

报错1:

from tensorflow.compat.v2.experimental import dtensor as dtensor_api
ImportError: cannot import name 'dtensor' from 'tensorflow.compat.v2.experimental' (D:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow_a

解决1:

https://blog.csdn.net/qq_28590717/article/details/125508304

报错2:

If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
1.Downgrade the protobuf package to 3.20.x or lower.
2.Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

解决2:

https://blog.csdn.net/yuan2019035055/article/details/129391582

报错3:

AttributeError: module 'numpy' has no attribute 'object'

解决3:

https://www.cnblogs.com/emanlee/p/17074900.html

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容