ImportError: cannot import name 'newaxis' from 'tensorflow.python.ops.numpy_ops.np_array_ops'
ImportError: cannot import name 'newaxis' from 'tensorflow.python.ops.numpy_ops.np_array_ops'
File "E:\Eprogramfiles\Anaconda3\lib\site-packages\nbeats_keras\model.py", line 4, in <module>
import tensorflow.experimental.numpy as tnp
File
"E:\Eprogramfiles\Anaconda3\lib\site-packages\tensorflow\_api\v2\experimental\numpy\__init__.py",
line 206, in <module>
from tensorflow.python.ops.numpy_ops.np_array_ops import newaxis
ImportError:
cannot import name 'newaxis' from
'tensorflow.python.ops.numpy_ops.np_array_ops'
(E:\Eprogramfiles\Anaconda3\lib\site-packages\tensorflow\python\ops\numpy_ops\np_array_ops.py)
from tensorflow.python.ops.numpy_ops.np_array_ops import newaxis
思路:
重新配置一个虚环境,从零开始安装。【可行】