1######## for Python 2.7
2pip install --upgrade pip
3pip install --upgrade tensorflow
4
5######## for Python 3.n
6pip3 install --upgrade pip
7pip3 install --upgrade tensorflow
1python -c 'import tensorflow as tf; print(tf.__version__)' # for Python 2 on linux
2python3 -c 'import tensorflow as tf; print(tf.__version__)' # for Python 3 on linux
1python -c 'import tensorflow as tf; print(tf.__version__)' # for Python 2
2python3 -c 'import tensorflow as tf; print(tf.__version__)' # for Python 3
3