Skip to content

Install tensorflow FreeBSD

Higepon Taro Minowa edited this page Jul 25, 2017 · 17 revisions

todo

./configure --prefix=$HOME/local/python gmake -j8 && gmake -j8 install ln python3 python

  • .bashrc

. export PYTHON=$HOME/local/python/bin/python3 . export PATH=$HOME/local/python/bin:$PATH . export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/local/python/lib . which pip3 /home/monaos/local/python/bin/pip3

  • numpy
    • $ pip3 install numpy

Command "/home/monaos/local/python/bin/python3.6 -u -c "import setuptools, tokenize;file='/var/tmp/pip-build-6l02_753/numpy/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-nsh01p6t-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /var/tmp/pip-build-6l02_753/numpy/

  • download source
    • python setup.py build
    • RuntimeError: Running cythonize failed!
    • pip3 install Cython
  • pip3 install numpy==1.7.1 worked!
  • tensorflow required bazel
  • bazel requires java
  • install tensorflow from source
    • on mac

. git clone https://github.com/tensorflow/tensorflow.git . cd tensorflow . git checkout v1.1.0

  • scp it to freebsd
Clone this wiki locally