Ubunut 16.04 TensorFlow

来源:互联网 发布:网络信息安全的问题 编辑:程序博客网 时间:2024/06/03 07:13


1、python误以为tensorflow目录中的tensorflow就是要导入的模块。解决办法,不要在tensorflow中运行python或者ipython

2、The real fix for me was to updated setuptools to the latest and it allowed me to upgrade mock and six to the latest. I was on setuptools 3.3. In my case I also had to remove said modules by hand because they were owned by OS in '/usr/local/lib/python2.7/dist-packages/'

check versions of everything

pip freeze | grep -e six -e mockeasy_install --version
Update everything
wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo pythonpip install mock --upgradepip install six --upgrade


参考:

http://blog.csdn.net/hanhuili/article/details/52077163

http://blog.csdn.net/cnhk1225/article/details/52749640

原创粉丝点击