安装tensorflow2023-03-30

2023-04-01  本文已影响0人  一只大南瓜

安装连接:

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

上一篇 下一篇

猜你喜欢

热点阅读