TensorFlow 安装与环境配置

非常感觉您的分享,写的非常清晰 ,对我帮助很大 。
请问 spyder 里不能查看变量值是怎么回事呢

我没有用过 spider,所以只能建议你在网络上搜索一下错误信息。本手册建议使用 PyCharm 作为 IDE,参考 https://tf.wiki/zh_hans/basic/installation.html#ide

我在 import tensorflow as tf 时出现下面的错误是什么问题,之前装也没有问题。
2020-06-28 21:14:21.568630: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
Traceback (most recent call last):
File “”, line 1, in
File “F:\Python\InstallPath\lib\site-packages\tensorflow_init_.py”, line 41, in
from tensorflow.python.tools import module_util as module_util
File "F:\Python\InstallPath\lib\site-packages\tensorflow\python_init
.py", line 84, in
from tensorflow.python import keras
File “F:\Python\InstallPath\lib\site-packages\tensorflow\python\keras_init_.py”, line 27, in
from tensorflow.python.keras import models
File “F:\Python\InstallPath\lib\site-packages\tensorflow\python\keras\models.py”, line 27, in
from tensorflow.python.keras.engine import sequential
File “F:\Python\InstallPath\lib\site-packages\tensorflow\python\keras\engine\sequential.py”, line 27, in
from tensorflow.python.keras.engine import training
File “F:\Python\InstallPath\lib\site-packages\tensorflow\python\keras\engine\training.py”, line 37, in
from tensorflow.python.keras.engine import data_adapter
File “F:\Python\InstallPath\lib\site-packages\tensorflow\python\keras\engine\data_adapter.py”, line 55, in
from scipy import sparse as scipy_sparse # pylint: disable=g-import-not-at-top
File “F:\Python\InstallPath\lib\site-packages\scipy_init_.py”, line 106, in
from . import distributor_init
File “F:\Python\InstallPath\lib\site-packages\scipy_distributor_init.py”, line 26, in
WinDLL (os.path.abspath (filename))
File "F:\Python\InstallPath\lib\ctypes_init
.py", line 364, in init
self._handle = _dlopen (self._name, mode)
OSError: [WinError 126] 找不到指定的模块。

劳烦说明一下安装的 TensorFlow 版本,以及请参考 https://tf.wiki/zh/basic/installation.html#id12 中的 “导入 TensorFlow 时部分可能出现的错误信息及解决方案”。考虑安装一下 Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019 看看。

刚开始安装的是 GPU 版本 2.2.0,cuda10.1,cudnn7.6.5。后来又降级到 2.1.0 版本,还是这个问题。