Skip to content

BITDOL-Drift/Drift-dependency-bin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Drift-dependency-bin

Dependency file for this project raspberrypi4b+ / aarch64 / Ubuntu 18.04 / ros melodic / Opencv 3.4 / python 3.6 / python 2.7

Quick Start

Ros melodic dependends on python2 -> needs tensorflow 1.15

1. bazel 0.26.1

Bazel is build system for tensorflow. The Bazel executable binary file on this repo is built from aarch64, ubuntu18.04. And Bazel 0.26.1 is latest version which supports build for tensorflow v1.15.

If you need another version of tensorflow, you can use this binary file for build your tensorflow package from source. Bazel and tensorflow needs below dependency packages to build.

sudo apt update
sudo apt install build-essential openjdk-11-jdk git vim python zip unzip -y
sudo apt install python-pip
sudo apt install python-h5py
pip install --upgrade setuptools wheel numpy future
pip install grpcio keras_preprocessing==1.1.2 mock==3.0.5 protobuf==3.6.1 --no-deps

And download the bazel file. Copy to your /usr/bin

sudo cp output/bazel /usr/bin/

Further stages are left. Clone source to your local folder and build tensorflow.

git clone https://github.com/tensorflow/tensorflow
cd tensorflow
git checkout r1.15 # change branch with your usage
./configure
bazel build --config=opt  //tensorflow/tools/pip_package:build_pip_package ## this is build command. it will takes long time.

2. tensorflow 1.15

If you just need tensorflow package. just download tensorflow-1.15.5-cp27-cp27mu-linux_aarch64.whl to your workspace and build with below command.

sudo apt install -y python-pip python-h5py ##dependencies
pip install --upgrade setuptools wheel numpy future
pip install grpcio keras_preprocessing==1.1.2 mock==3.0.5 protobuf==3.6.1 --no-deps
sudo -H pip install tensorflow-1.15.5-cp27-cp27mu-linux_aarch64.whl

Check your version with

import tensorflow as tf
print(tf.__version__) ## 1.15.5

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages