Install TensorFlow under Mac OS

Source: Internet
Author: User
Tags virtualenv



Install via PIP



I'm here to install with PIP, so install PIP first



Open the terminal and run the command line:




will be able to install PIP successfully.






The tutorial says in the terminal input





Pip Install TensorFlow


You can install the CPU version of the TensorFlow.






However, and strange, my computer tried a lot of methods, the installation will be error.



Finally on the Internet to check the information, found that it can be installed correctly.


Pip Install TensorFlow--ignore-installed Six





pip installI encountered this error when I installed some Python packages because these packages need to rely on six, and when we install six, we find that the system already has a six-1.4.1 but does not have permission to uninstall it, so we cannot install the new version. six-1.4.1 is the system built-in packages, because of system integration protection you are not authorized to modify/system/library/frameworks/python.framework/versions/2.7/extras/ The Lib/python/six-1.4.1-py2.7.egg-info directory. (Copy from Reference link 2)















VIRTUALENV-based installation



There is also a way to install based on virtualenv





If the above method still does not solve your problem, you can try this installation method.






However, this installation method is relatively cumbersome. There are detailed installation methods in the TensorFlow Chinese tutorial. It's not moving here.






Reference links



Http://www.tensorfly.cn/tfdoc/get_started/os_setup.html



TensorFlow Chinese Course



Http://www.bkjia.com/Pythonjc/1231665.html



Pip Install error








Install TensorFlow under Mac OS


Related Article

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.