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