1. Install Homebrew on Mac OSX
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Reference:
2. Install pyenv
brew install pyenv
3. Install python 3.6.6
(using pyenv install specific version of the python, the latest is 3.7 but this python version is still incompatible with current tensor flow version 1.9)
pyenv install 3.6.0
pyenv global 3.6.0
python --version
4. Install PyCharm
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null
brew cask install pycharm
pyenv install 3.6.0
4.1 Set Python interpretor for PyCharm
4.2 Install additional packages (such as matplotlib) into the pyCharm
https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html
4.3 Fix matplotlib exception at runtime
RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework.
Process finished with exit code 1
Solution
touch ~/.matplotlib/matplotlibrc
Add below line
backend: TkAgg
5. Install anaconda
pyenv install --list | grep anaconda
install anaconda3-5.2.0
4.1 Set Python interpretor for PyCharm
https://www.jetbrains.com/help/pycharm/installing-uninstalling-and-upgrading-packages.html
4.3 Fix matplotlib exception at runtime
RuntimeError: Python is not installed as a framework. The Mac OS X backend will not be able to function correctly if Python is not installed as a framework.
Process finished with exit code 1
Solution
touch ~/.matplotlib/matplotlibrc
Add below line
backend: TkAgg
5. Install anaconda
pyenv install --list | grep anaconda
install anaconda3-5.2.0

No comments:
Post a Comment