【发布时间】:2018-01-19 14:46:10
【问题描述】:
我已经通过 Anaconda 下载了 tensorflow 库,但是我无法在 tensorflow 环境中启动 Spyder,我也无法在 Anaconda 提示符下导入 tensorflow。
以下是规格:
python 版本:3.6.1.final.0
平台:win-64
康达版本:4.3.21
conda 是私有的:错误
conda-env 版本:4.3.21
conda-build 版本:未安装
请求版本:2.14.2
我收到以下错误:
File "C:\ProgramData\Anaconda3\envs\tensorflow\lib\site-packages\tensorflow\python\util\tf_should_use.py", line 28, in <module>
from backports import weakref # pylint: disable=g-bad-import-order
ImportError: cannot import name 'weakref'
【问题讨论】:
标签: python tensorflow anaconda python-import python-3.6