问题遇到的现象和发生背景
已安装tensorflow-gpu1.14.0版本,cuda10.0,cuDNN7.4.2
问题相关代码,请勿粘贴截图
import tensorflow as tf
运行结果及报错内容
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "F:\Anaconda\envs\cp37\lib\site-packages\tensorflow\__init__.py", line 28, in <module>
from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import
File "F:\Anaconda\envs\cp37\lib\site-packages\tensorflow\python\__init__.py", line 73, in <module>
from tensorflow.python.ops.standard_ops import *
File "F:\Anaconda\envs\cp37\lib\site-packages\tensorflow\python\ops\standard_ops.py", line 25, in <module>
from tensorflow.python import autograph
File "F:\Anaconda\envs\cp37\lib\site-packages\tensorflow\python\autograph\__init__.py", line 37, in <module>
from tensorflow.python.autograph.core.converter import ConversionOptions
File "F:\Anaconda\envs\cp37\lib\site-packages\tensorflow\python\autograph\core\converter.py", line 71, in <module>
from tensorflow.python.autograph.pyct import cfg
File "F:\Anaconda\envs\cp37\lib\site-packages\tensorflow\python\autograph\pyct\cfg.py", line 41, in <module>
from tensorflow.python.autograph.pyct import compiler
File "F:\Anaconda\envs\cp37\lib\site-packages\tensorflow\python\autograph\pyct\compiler.py", line 32, in <module>
import astor
File "F:\Anaconda\envs\cp37\lib\site-packages\astor\__init__.py", line 14, in <module>
from .code_gen import to_source # NOQA
File "F:\Anaconda\envs\cp37\lib\site-packages\astor\code_gen.py", line 311
def visit_FunctionDef(self, node, async=False):