1 Install Python and the TensorFlow package dependencies
sudo apt install python-dev python-pip # or python3-dev python3-pip
pip install -U --user pip six numpy wheel mock
sudo gedit /usr/bin/pip
replace as below
-
#!/usr/bin/python
-
# GENERATED BY DEBIAN
-
-
import sys
-
-
# Run the main entry point, similarly to how setuptools does it, but because
-
# we didn't install the actual entry point from setup.py, don't use the
-
# pkg_resources API.
-
from pip import __main__
-
if __name__ == '__main__':
-
sys.exit(__main__._main())
pip install -U --user keras_applications==1.0.5 --no-deps
pip install -U --user keras_preprocessing==1.0.3 --no-deps
2 Install Bazel
sudo apt-get install pkg-config zip g++ zlib1g-dev unzip python
sudo apt-get install openjdk-8*
download from
sudo dpkg -i bazel_0.20.0-linux-x86_64.deb
阅读(836) | 评论(0) | 转发(0) |