https://www.tensorflow.org/install/install_sources
$ sudo apt-get install libcupti-dev
$ sudo apt-get install python-dev python-pip python-wheel
python -m pip install google-pasta --user
python -m pip install opt-einsum --user
python -m pip install grpcio --user
python -m pip install protobuf --user
python -m pip install absl-py --user
python -m pip install wrapt --user
python -m pip install astor --user
python -m pip install termcolor --user
python -m pip install gast==0.2.2 --user
python -m pip install tensorboard==1.15.0 --user
python -m pip install tensorflow-estimator==1.15.1 --user
python -m pip install keras_applications==1.0.8 --no-deps --user
python -m pip install keras_preprocessing==1.1.0 --no-deps --user
To prevent running out of memory during a build, restrict the build to use e.g. 1 processor:
$ ck install package:lib-tensorflow-1.15.2-src-cuda --env.CK_HOST_CPU_NUMBER_OF_PROCESSORS=1