安装 TensorFlow时:Cannot uninstall 'enum34'. It is a distutils installed project and thus we ca...

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

这里或者去你的user/bin/python2下找到这个包删除掉也可以

然后继续安装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
 

或许你在安装过程中遇到其他功能包的问题。这里你只需要替换一下即可

原文地址:https://www.cnblogs.com/montai/p/13437608.html