Copied to Clipboard
Damn!
pip install wheel
And
export PATH=$PATH:/home/poddingue/.local/bin
in `~/.bashrc`, because of
pip install wheel
Collecting wheel
Using cached https://files.pythonhosted.org/packages/8c/23/848298cccf8e40f5bbb59009b32848a4c38f4e7f3364297ab3c3e2e2cd14/wheel-0.34.2-py2.py3-none-any.whl
Installing collected packages: wheel
The script wheel is installed in '/home/poddingue/.local/bin' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed wheel-0.34.2
Let’s issue once more `
` bash
pip install tensorflow-1.14.0-cp27-none-linux_aarch64.whl
error: libhdf5.so: cannot open shared object file: No such file or directory
`
Bad luck.
bash
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-irkqLB/h5py/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-record-N9oIr_/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-irkqLB/h5py/
Something must be missing...
bash
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-irkqLB/h5py/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-record-N9oIr_/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-install-irkqLB/h5py/
Not better... I think the machine is trying to tell me something... A missing library perhaps?
bash
sudo apt install python-h5py
pip install tensorflow-1.14.0-cp27-none-linux_aarch64.whl
[...]
Successfully installed astor-0.8.1 backports.weakref-1.0.post1 funcsigs-1.0.2 gast-0.3.3 google-pasta-0.2.0 keras-applications-1.0.8 mock-3.0.5 tensorflow-1.14.0 tensorflow-estimator-1.14.0 termcolor-1.1.0
rm tensorflow-1.14.0-cp27-none-linux_aarch64.whl
It worked!
Now, let’s edit a test.py file:
` python
import tensorflow as tf
hello = tf.constant('Hello, TensorFlow!')
sess = tf.Session()
sess = tf.compat.v1.Session()
print(sess.run(hello))
`
bash
python test.py
Hello, TensorFlow!
We all have to start somewhere, don’t we?
TL;DR
bash
sudo apt-get install -y python-setuptools python-h5py python-pip python-dev libatlas-base-dev
curl -L "https://github.com/lhelontra/tensorflow-on-arm/releases/download/v1.14.0/tensorflow-1.14.0-cp27-none-linux_aarch64.whl" --output tensorflow-1.14.0-cp27-none-linux_aarch64.whll
pip install wheel
pip install tensorflow-1.14.0-cp27-none-linux_aarch64.whl
cat >> ~/.bashrc
export PATH=$PATH:/home/poddingue/.local/bin
CTRL+D
source ~/.bashrc