首页 > 解决方案 > Tensorflow 最大递归深度仅在导入时超过

问题描述

我正在尝试启动一个 Tensorflow 项目,我可以安装它,但是当我这样做时,import tensorflow as tf它会给我一个错误。我正在使用 Python 3.8,Cuda CudNN ...

错误:

File "C:\Users\Felipe Garcia\AppData\Local\Programs\Python\Python38-32\lib\site-packages\tensorflow\python\_pywrap_tensorflow_internal.py", line 18, in swig_import_helper fp, pathname, description = imp.find_module('_pywrap_tensorflow_internal', [dirname(__file__)])

File "C:\Users\Felipe Garcia\AppData\Local\Programs\Python\Python38-32\lib\imp.py", line 301, in find_module

encoding = tokenize.detect_encoding(file.readline)[0]

RecursionError: maximum recursion depth exceeded while calling a Python object

这只是错误的结束,但其余的错误都是一样的,而且很长。

谢谢大家。

标签: pythontensorflow

解决方案


推荐阅读