[英]Tensorflow ImportError (Unknown Location)
When trying to run a program on JupyterLab within an OpenVino environment on my Raspberry Pi 4, I get the following error when I try to import Tensorflow:尝试在 Raspberry Pi 4 上的 OpenVino 环境中的 JupyterLab 上运行程序时,当我尝试导入 Tensorflow 时出现以下错误:
ImportError: cannot import name 'context' from 'tensorflow.python.eager' (unknown location)
导入错误:无法从“tensorflow.python.eager”(未知位置)导入名称“context”
This program was having no issue importing anything just the other day, so I don't know what went wrong, nor how to remedy this issue.该程序前几天导入任何内容都没有问题,所以我不知道出了什么问题,也不知道如何解决这个问题。
Other pertinent information is that I'm running Python 3.7 and Tensorflow 2.3其他相关信息是我正在运行 Python 3.7 和 Tensorflow 2.3
Any help with this is appreciated.对此的任何帮助表示赞赏。
Well I ended up resolving this issue.好吧,我最终解决了这个问题。 Turns out it was due to an issue in the cloning process.
原来这是由于克隆过程中的问题。 Created a new backup and restored from this new backup and the error went away.
创建了一个新备份并从这个新备份中恢复,错误消失了。
Thanks for the help everyone.谢谢大家的帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.