Ubunut 16.04 tensorflow-importerror:cannot Import name Pywrap_tensorflow__ubuntu

Source: Internet
Author: User


1, Python mistakenly thought that the TensorFlow directory of TensorFlow is to import the module. Workaround, do not run Python or Ipython in TensorFlow

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

Check versions of everything

Pip Freeze | GREP-E six-e mock
easy_install--version
Update everything
wget Https://bootstrap.pypa.io/ez_setup.py-O-| sudo python
pip install mock--upgrade
pip install six--upgrade


Reference:

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

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.