Yum install python python-devel tkinter yum install autoconf automake libtool curl make gcc-c++ unzip yum install python-matplotlib pip uninstall numpy pip uninstall numpy pip install numpy pip uninstall matplotlib pip uninstall matplotlib pip install matplotlib pip install --upgrade pip pip install tensorflow sudo pip install pillow sudo pip install lxml sudo pip install jupyter sudo pip install matplotlib sudo pip install utils Download source: https://github.com/google/protobuf/releases cd protobuf-3.5.1 ./autogen.sh ./configure --prefix=/usr/local/protobuf make make check make install ldconfig export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/protobuf/lib export LIBRARY_PATH=$LIBRARY_PATH:/usr/local/protobuf/lib export PATH=$PATH:/usr/local/protobuf/bin protoc --version Download: https://codeload.github.com/tensorflow/models/zip/master cd models-master/research/ protoc object_detection/protos/*.proto --python_out=. export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim python object_detection/builders/model_builder_test.py Download model: https://github.com/tensorflow/models/blob/master/research/object_detection/g3doc/detection_model_zoo.md cd models-master python tutorials/image/imagenet/classify_image.py mv /tmp/imagenet/ /root/tf/ python /root/models-master/tutorials/image/imagenet/classify_image.py --model_dir=/root/tf/imagenet --image_file /root/models-master/research/object_detection/test_images/image1.jpg