如果安装TensorFlow时出现这个问题:
Cannot uninstall 'enum34'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
你需要卸载enum34
输入以下命令即可:
sudo pip install --ignore-installed enum34
然后继续安装TensorFlow就可以啦!
python 2.7版本安装:sudo pip install tensorflow
测试:
Python
>>>import tensorflow as tf
>>>session = tf.Session()
Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX2 FMA
>>>
欢迎各位大佬留言