Skip to content

Latest commit

 

History

History
40 lines (35 loc) · 2.12 KB

tensorFlow.md

File metadata and controls

40 lines (35 loc) · 2.12 KB

Installation of Tensorflow and Dependencies on MAC

  • Install pip: 'sudo easy_install pip'
  • Install virtualenv: sudo pip install virtualenv
  • Intall tensorflow through:
    • virtualenv: virtualenv --system-site-packages ~/tensorflow
    • pip install tensorflow==1.2.0 --ignore-installed
  • Navigate to the bin folder: cd ~/tensorflow/bin
  • Activate tensorFlow:
    • For TSCH: source activate.csh
    • For Bash: source ./activate
  • Add this path:
    • For bashrc or terminal: export PYENV_ROOT=/usr/local/opt/pyenv
      • Add this line for future use: vi ~/.bash_profile
    • For tcshrc: setenv PYTHONHTTPSVERIFY 0
  • Make sure to see this configuration if the username is test: [tensorflow] /Users/test/tensorflow/bin 90
  • Install xlrd: pip install xlrd
  • Install matplotlib: pip install matplotlib
    • Add --ignore-installed six if you receive a related error message: pip install --ignore-installed six
    • Add to matplotlib:
    • Navigate to matplotlib folder in the main user folder: cd ~/.matplotlib
    • Open vi and add this file: backend: TkAgg
    • Open vi matplotlibrc and add this file: backend: TkAgg
  • Install pandas:
    • pip install pandas
    • (In case of errors): pip install --ignore-installed pandas

Installation of jython

  • Install jythin: brew install jython
  • Set up jython: sudo pip install execnet
  • In case of using Homebrow and tcsch, you need to add jython to the path. For example, set path = ($path /usr /usr/bin /usr/local/bin /sw/bin /usr/sbin /usr/X11R6/bin /usr/local/homebrew/Cellar/ant/1.10.1/libexec/bin /usr/local/homebrew/Cellar/git/2.15.1_1/bin /usr/local/homebrew/Cellar/scala/2.12.4/bin /usr/X11R6/bin /usr/local/texlive/2017/bin/x86_64-darwin /usr/local/homebrew/Cellar/jython/2.7.1/bin)

Update TensorFlow

Deep Learning + Bayesian Reasoning

  • Download the code from here
  • Run the script sudo pip install