TensorFlow Environment Configuration----MAC OS

Source: Internet
Author: User
Tags install homebrew

TensorFlow installation is simple under Mac OS system

1, install Python, we strongly recommend using homebrew to reinstall Python, do not use the system comes with Python;

Install Homebrew: Log in https://brew.sh/, follow the website prompt paste command to terminal, can install;

If you need to replace the image source after installation, please refer to: https://lug.ustc.edu.cn/wiki/mirrors/help/brew.git; Zhong ke image source is recommended.

After installing Python:brew install Python

No permissions use sudo brew install Python

2. Install Pip

PIP installation is simple, direct command: Easy_install PIP

Pip Install-u Six

About Pip Intsall Even with sudo still exists operation not permitted is because of the new system protection mechanism, the following method can be solved, pro-Test available:

Restart your computer, press and hold Command+r (until the Apple logo appears) into recovery mode (recovery model)

In the top left menu, find the utility, terminal

Enter Csrutil disable return to restart your Mac

If you want to restart the SIP mechanism, repeat the steps above to use Csrutil enable

3, Installation TensorFlow

Pip Install TensorFlow

If you have a standalone graphics Mac, you can install the GPU version: Pip install TENSORFLOW-GPU (GPU version requires first installing coreutils and CUDA libraries, using brew installation ...) The blogger is not GPU-loaded)

3, test installation is successful, Bo Master is too lazy, bar, command as follows

4, the installation success can be used happily

TensorFlow Environment Configuration----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.