@TOC安装TensorFlow2.1.0遇见的所有问题
自己电脑环境
电脑没有GPUpython是通过anaconda3安装的python3.6版本编译器使用的pycharm社区版
TensorFlow2.1.0安装
安装命令
pip install tensorflow-cpu==2.1.0
遇见的问题
安装后报错:You are using pip version 10.0.1, however version 20.0.2 is available. You should consider upgrading via the ‘python -m pip install --upgrade pip’ command. 解决方法:升级pip 输入指令:
python -m pip install --upgrade pip
安装后报错:Cannot uninstall ‘wrapt’. It is a distutils installed project and thus we cannot accurately 解决方法:输入指令:
pip install -U --ignore-installed wrapt
使用pycharm运行TensorFlow官方demo遇见的问题
解决:Your CPU supports instructions that this TensorFlow binary was not compiled 出现上述警告信息时只需要加一行如下代码:
import os os.environ[‘TF_CPP_MIN_LOG_LEVEL’] = ‘2’
待解决问题
Pycharm Debug出现pydev debugger: process xxxx is connecting
这个问题自己没有解决,不过一个博主写的很细致,可参考:
PyCharm的Debugger问题总结之pydev debugger: process XXXX is connecting