TensorFlow and Android

Steps followed

git clone https://github.com/tensorflow/models.git

cd models/research

which python

and

which python3

to get the python

or

ll /usr/bin/python*

sudo gedit ~/.profile

PYTHONPATH=”/usr/bin/python:/usr/bin/python3″

ctrl+s

ctrl+c

source ~/.profile

cd ../../

wget https://github.com/google/protobuf/releases/download/v3.3.0/protoc-3.3.0-linux-x86_64.zip

unzip protoc-3.3.0-linux-x86_64.zip -d protoc-3.3.0 cd models/research/ ../../protoc-3.3.0/bin/protoc object_detection/protos/*.proto --python_out=.

 

export PYTHONPATH=$PYTHONPATH:`pwd`:`pwd`/slim:`pwd`/object_detection

or

sudo gedit ~/.profile

PYTHONPATH=”/usr/bin/python:/usr/bin/python3:/home/m1035364/Downloads/pikachooTensor/models/research:/home/m1035364/Downloads/pikachooTensor/models/research/slim:/home/m1035364/Downloads/pikachooTensor/models/research/object_detection”

ctrl+s

ctrl+c

source ~/.profile

python3 object_detection/builders/model_builder_test.py

………………
———————————————————————-
Ran 18 tests in 0.097s

OK

On sucessfull installation output will be as above 

 

 

 

New guideline from begining

https://docs.python-guide.org/dev/virtualenvs/

follow to setup python for the project specfic. or use pycharm from here

Install and create a project in the pycharm by clicking file and new Project

projectname=hellow_tensor

Location=/home/naval/PycharmProjects/projectname

new environment using select Virtualenv

location=/home/naval/.virtualenvs/PycharmProject/projectname

baseInterpreter: Python3.6 /usr/bin/python3.6  –your wish you can choose any version i have latested

open terminal in pycharm type cmd

ll

—-output will be

drwxrwxr-x 3 m1035364 m1035364 4096 Sep 15 11:31 ./
drwxrwxr-x 3 m1035364 m1035364 4096 Sep 15 11:26 ../
drwxrwxr-x 2 m1035364 m1035364 4096 Sep 15 11:59 .idea/

Now check whether you have virtual env or not type cmd

virtualenv –version

–output in my case if blank follow the guideline of  this link

16.0 .0

to have a basic setup virtualenv for the project type cmd

virtualenv hello_tensor

—output will be

Using base prefix ‘/usr’
New python executable in /home/naval/PycharmProjects/hello_tensor/hello_tensor/bin/python3
Also creating executable in /home/naval/PycharmProjects/hello_tensor/hello_tensor/bin/python
Installing setuptools, pip, wheel…done.

source hello_tensor/bin/activate

pip list

–output will be like this

Package Version
———- ——-
pip 10.0.1
setuptools 39.1.0
wheel 0.31.1

its optional to have basic requiremt of libs type cmd

pip install requests

–output

it will download the below packages and install for you

Installing collected packages: idna, chardet, urllib3, certifi, requests

you can check it ,type cmd

pip list

–output

Package Version
———- ———
certifi 2018.8.24
chardet 3.0.4
idna 2.7
pip 10.0.1
requests 2.19.1
setuptools 39.1.0
urllib3 1.23
wheel 0.31.1

Install all python requirements for our project

Create a requirements.txt file in the project and add the python dependencies in it.

numpy
scipy
tensorflow==1.10.0
tensorflow-gpu
keras
ipython
jupyter
six
protobuf==3.1.0
wheel

tensorflow-gpu is optional

keep this file in projectname folder of your and type the cmd

pycharm will prompt to install it click on ok or just type the cmd

pip install -r requirements.txt

output will be something like this

Collecting numpy (from -r requirements.txt (line 1))
Downloading https://files.pythonhosted.org/packages/26/c5/ed8379c03040146c807b472563df29134505c72e6980a253310368fc1877/numpy-1.15.1-cp34-cp34m-manylinux1_x86_64.whl (13.8MB)
100% |████████████████████████████████| 13.8MB 633kB/s
Collecting scipy (from -r requirements.txt (line 2))
Downloading https://files.pythonhosted.org/packages/56/b5/1a47572236785278db0c8a1e7bb4040eebb63b78fbb470b6f5efc357ffcf/scipy-1.1.0-cp34-cp34m-manylinux1_x86_64.whl (31.1MB)
100% |████████████████████████████████| 31.1MB 516kB/s
Collecting tensorflow==1.10.0 (from -r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/db/a4/474ea77f41fbcd02d382debef1053de769db2ea0e7c29c275ddd0098f832/tensorflow-1.10.0-cp34-cp34m-manylinux1_x86_64.whl (59.0MB)
100% |████████████████████████████████| 59.0MB 15kB/s
Collecting tensorflow-gpu (from -r requirements.txt (line 4))
Downloading https://files.pythonhosted.org/packages/8a/d8/4991b9c465ba3166ede6631f4fc81b945dc7ec4c9c5a6b49599b68d16ee9/tensorflow_gpu-1.10.1-cp34-cp34m-manylinux1_x86_64.whl (253.7MB)
100% |████████████████████████████████| 253.7MB 14kB/s
Collecting keras (from -r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/34/7d/b1dedde8af99bd82f20ed7e9697aac0597de3049b1f786aa2aac3b9bd4da/Keras-2.2.2-py2.py3-none-any.whl (299kB)
100% |████████████████████████████████| 307kB 2.6MB/s
Collecting ipython (from -r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/f7/62/2fef7db3a7b75e8099c3d9db2630ae5ba0b9eefefd91f7497862393d90e8/ipython-6.5.0-py3-none-any.whl
Collecting jupyter (from -r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/83/df/0f5dd132200728a86190397e1ea87cd76244e42d39ec5e88efd25b2abd7e/jupyter-1.0.0-py2.py3-none-any.whl
Collecting six (from -r requirements.txt (line 8))
Using cached https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting protobuf==3.3.0 (from -r requirements.txt (line 9))
Downloading https://files.pythonhosted.org/packages/b8/0f/b2a2c5fbba035f4ced24c26a192d3357367947f20fb063ba6090aeaef0ef/protobuf-3.3.0-cp34-cp34m-manylinux1_x86_64.whl (5.7MB)
100% |████████████████████████████████| 5.7MB 765kB/s
Requirement already satisfied: wheel in ./hello_tensor/lib/python3.4/site-packages (from -r requirements.txt (line 10)) (0.31.1)
Collecting grpcio>=1.8.6 (from tensorflow==1.10.0->-r requirements.txt (line 3))
Downloading https://files.pythonhosted.org/packages/98/2d/e56098b7bc8c76ebbdfafeb0c1997b98c15f38dca8f497c20064559a0135/grpcio-1.15.0-cp34-cp34m-manylinux1_x86_64.whl (9.6MB)
100% |████████████████████████████████| 9.6MB 1.5MB/s
Collecting absl-py>=0.1.6 (from tensorflow==1.10.0->-r requirements.txt (line 3))
Collecting astor>=0.6.0 (from tensorflow==1.10.0->-r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/35/6b/11530768cac581a12952a2aad00e1526b89d242d0b9f59534ef6e6a1752f/astor-0.7.1-py2.py3-none-any.whl
Collecting tensorboard<1.11.0,>=1.10.0 (from tensorflow==1.10.0->-r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/c6/17/ecd918a004f297955c30b4fffbea100b1606c225dbf0443264012773c3ff/tensorboard-1.10.0-py3-none-any.whl
Requirement already satisfied: setuptools<=39.1.0 in ./hello_tensor/lib/python3.4/site-packages (from tensorflow==1.10.0->-r requirements.txt (line 3)) (39.1.0)
Collecting termcolor>=1.1.0 (from tensorflow==1.10.0->-r requirements.txt (line 3))
Collecting gast>=0.2.0 (from tensorflow==1.10.0->-r requirements.txt (line 3))
Collecting pyyaml (from keras->-r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/9e/a3/1d13970c3f36777c583f136c136f804d70f500168edc1edea6daa7200769/PyYAML-3.13.tar.gz (270kB)
100% |████████████████████████████████| 276kB 2.4MB/s
Collecting keras-applications==1.0.4 (from keras->-r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/54/90/8f327deaa37a71caddb59b7b4aaa9d4b3e90c0e76f8c2d1572005278ddc5/Keras_Applications-1.0.4-py2.py3-none-any.whl (43kB)
100% |████████████████████████████████| 51kB 2.8MB/s
Collecting keras-preprocessing==1.0.2 (from keras->-r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/71/26/1e778ebd737032749824d5cba7dbd3b0cf9234b87ab5ec79f5f0403ca7e9/Keras_Preprocessing-1.0.2-py2.py3-none-any.whl
Collecting h5py (from keras->-r requirements.txt (line 5))
Downloading https://files.pythonhosted.org/packages/e3/9f/c66d3a3ccae72f7fdf4f4a1f9cb5e8ef438a86925f597d2f8c9838c86834/h5py-2.8.0-cp34-cp34m-manylinux1_x86_64.whl (2.8MB)
100% |████████████████████████████████| 2.8MB 2.1MB/s
Collecting prompt-toolkit<2.0.0,>=1.0.15 (from ipython->-r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/04/d1/c6616dd03701e7e2073f06d5c3b41b012256e42b72561f16a7bd86dd7b43/prompt_toolkit-1.0.15-py3-none-any.whl
Collecting jedi>=0.10 (from ipython->-r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/3d/68/8bbf0ef969095a13ba0d4c77c1945bd86e9811960d052510551d29a2f23b/jedi-0.12.1-py2.py3-none-any.whl
Collecting pexpect; sys_platform != “win32” (from ipython->-r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/89/e6/b5a1de8b0cc4e07ca1b305a4fcc3f9806025c1b651ea302646341222f88b/pexpect-4.6.0-py2.py3-none-any.whl
Collecting backcall (from ipython->-r requirements.txt (line 6))
Collecting simplegeneric>0.8 (from ipython->-r requirements.txt (line 6))
Collecting typing; python_version <= “3.4” (from ipython->-r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/4a/bd/eee1157fc2d8514970b345d69cb9975dcd1e42cd7e61146ed841f6e68309/typing-3.6.6-py3-none-any.whl
Collecting pickleshare (from ipython->-r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/9f/17/daa142fc9be6b76f26f24eeeb9a138940671490b91cb5587393f297c8317/pickleshare-0.7.4-py2.py3-none-any.whl
Collecting decorator (from ipython->-r requirements.txt (line 6))
Downloading https://files.pythonhosted.org/packages/bc/bb/a24838832ba35baf52f32ab1a49b906b5f82fb7c76b2f6a7e35e140bac30/decorator-4.3.0-py2.py3-none-any.whl
Collecting pygments (from ipython->-r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl
Collecting traitlets>=4.2 (from ipython->-r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/93/d6/abcb22de61d78e2fc3959c964628a5771e47e7cc60d53e9342e21ed6cc9a/traitlets-4.3.2-py2.py3-none-any.whl
Collecting qtconsole (from jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/ff/1f/b340d52dee46fbbe8a097dce76d1197258bb599692159d94c80921fef9eb/qtconsole-4.4.1-py2.py3-none-any.whl
Collecting jupyter-console (from jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/77/82/6469cd7fccf7958cbe5dce2e623f1e3c5e27f1bb1ad36d90519bc2d5d370/jupyter_console-5.2.0-py2.py3-none-any.whl
Collecting ipywidgets (from jupyter->-r requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/30/9a/a008c7b1183fac9e52066d80a379b3c64eab535bd9d86cdc29a0b766fd82/ipywidgets-7.4.2-py2.py3-none-any.whl (111kB)
100% |████████████████████████████████| 112kB 2.5MB/s
Collecting ipykernel (from jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/7a/de/a03a5c1f8b743675add3c98f1eb877c67bb29c5196ee6ce54e9c839d23cc/ipykernel-4.9.0-py3-none-any.whl
Collecting notebook (from jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/5e/7c/7fd8e9584779d65dfcad9fa2e09c76131a41f999f853a9c7026ed8585586/notebook-5.6.0-py2.py3-none-any.whl
Collecting nbconvert (from jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/b5/bb/94c493051d60e5b9c0f7f9a368b324201818c1b1c4cae85d1e49a41846c7/nbconvert-5.4.0-py2.py3-none-any.whl
Collecting werkzeug>=0.11.10 (from tensorboard<1.11.0,>=1.10.0->tensorflow==1.10.0->-r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl
Collecting markdown>=2.6.8 (from tensorboard<1.11.0,>=1.10.0->tensorflow==1.10.0->-r requirements.txt (line 3))
Using cached https://files.pythonhosted.org/packages/6d/7d/488b90f470b96531a3f5788cf12a93332f543dbab13c423a5e7ce96a0493/Markdown-2.6.11-py2.py3-none-any.whl
Collecting wcwidth (from prompt-toolkit<2.0.0,>=1.0.15->ipython->-r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl
Collecting parso>=0.3.0 (from jedi>=0.10->ipython->-r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/09/51/9c48a46334be50c13d25a3afe55fa05c445699304c5ad32619de953a2305/parso-0.3.1-py2.py3-none-any.whl
Collecting ptyprocess>=0.5 (from pexpect; sys_platform != “win32”->ipython->-r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/d1/29/605c2cc68a9992d18dada28206eeada56ea4bd07a239669da41674648b6f/ptyprocess-0.6.0-py2.py3-none-any.whl
Collecting ipython-genutils (from traitlets>=4.2->ipython->-r requirements.txt (line 6))
Using cached https://files.pythonhosted.org/packages/fa/bc/9bd3b5c2b4774d5f33b2d544f1460be9df7df2fe42f352135381c347c69a/ipython_genutils-0.2.0-py2.py3-none-any.whl
Collecting jupyter-client>=4.1 (from qtconsole->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/94/dd/fe6c4d683b09eb05342bd2816b7779663f71762b4fa9c2d5203d35d17354/jupyter_client-5.2.3-py2.py3-none-any.whl
Collecting jupyter-core (from qtconsole->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/1d/44/065d2d7bae7bebc06f1dd70d23c36da8c50c0f08b4236716743d706762a8/jupyter_core-4.4.0-py2.py3-none-any.whl
Collecting widgetsnbextension~=3.4.0 (from ipywidgets->jupyter->-r requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/8a/81/35789a3952afb48238289171728072d26d6e76649ddc8b3588657a2d78c1/widgetsnbextension-3.4.2-py2.py3-none-any.whl (2.2MB)
100% |████████████████████████████████| 2.2MB 2.3MB/s
Collecting nbformat>=4.2.0 (from ipywidgets->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/da/27/9a654d2b6cc1eaa517d1c5a4405166c7f6d72f04f6e7eea41855fe808a46/nbformat-4.4.0-py2.py3-none-any.whl
Collecting tornado>=4.0 (from ipykernel->jupyter->-r requirements.txt (line 7))
Cache entry deserialization failed, entry ignored
Using cached https://files.pythonhosted.org/packages/45/ec/f2a03a0509bcfca336bef23a3dab0d07504893af34fd13064059ba4a0503/tornado-5.1.tar.gz
Collecting Send2Trash (from notebook->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/49/46/c3dc27481d1cc57b9385aff41c474ceb7714f7935b1247194adae45db714/Send2Trash-1.5.0-py3-none-any.whl
Collecting prometheus-client (from notebook->jupyter->-r requirements.txt (line 7))
Collecting pyzmq>=17 (from notebook->jupyter->-r requirements.txt (line 7))
Collecting terminado>=0.8.1 (from notebook->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/2e/20/a26211a24425923d46e1213b376a6ee60dc30bcdf1b0c345e2c3769deb1c/terminado-0.8.1-py2.py3-none-any.whl
Collecting jinja2 (from notebook->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/7f/ff/ae64bacdfc95f27a016a7bed8e8686763ba4d277a78ca76f32659220a731/Jinja2-2.10-py2.py3-none-any.whl
Collecting mistune>=0.8.1 (from nbconvert->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/c8/8c/87f4d359438ba0321a2ae91936030110bfcc62fef752656321a72b8c1af9/mistune-0.8.3-py2.py3-none-any.whl
Collecting pandocfilters>=1.4.1 (from nbconvert->jupyter->-r requirements.txt (line 7))
Collecting entrypoints>=0.2.2 (from nbconvert->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/cc/8b/4eefa9b47f1910b3d2081da67726b066e379b04ca897acfe9f92bac56147/entrypoints-0.2.3-py2.py3-none-any.whl
Collecting testpath (from nbconvert->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/15/19/d7bc380c479a184e4a5a9ce516e4e2a773165f89b445f7cdced83d94de25/testpath-0.3.1-py2.py3-none-any.whl
Collecting bleach (from nbconvert->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/94/aa/0f7ce53f8688bb9f80c0cffacc3964ddfe08321c509c0bfe5062848951f9/bleach-2.1.4-py2.py3-none-any.whl
Collecting defusedxml (from nbconvert->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/87/1c/17f3e3935a913dfe2a5ca85fa5ccbef366bfd82eb318b1f75dadbf0affca/defusedxml-0.5.0-py2.py3-none-any.whl
Collecting python-dateutil>=2.1 (from jupyter-client>=4.1->qtconsole->jupyter->-r requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/cf/f5/af2b09c957ace60dcfac112b669c45c8c97e32f94aa8b56da4c6d1682825/python_dateutil-2.7.3-py2.py3-none-any.whl (211kB)
100% |████████████████████████████████| 215kB 1.7MB/s
Collecting jsonschema!=2.5.0,>=2.4 (from nbformat>=4.2.0->ipywidgets->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/77/de/47e35a97b2b05c2fadbec67d44cfcdcd09b8086951b331d82de90d2912da/jsonschema-2.6.0-py2.py3-none-any.whl
Collecting backports_abc>=0.4 (from tornado>=4.0->ipykernel->jupyter->-r requirements.txt (line 7))
Downloading https://files.pythonhosted.org/packages/7d/56/6f3ac1b816d0cd8994e83d0c4e55bc64567532f7dc543378bd87f81cebc7/backports_abc-0.5-py2.py3-none-any.whl
Collecting MarkupSafe>=0.23 (from jinja2->notebook->jupyter->-r requirements.txt (line 7))
Collecting html5lib!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre (from bleach->nbconvert->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/a5/62/bbd2be0e7943ec8504b517e62bab011b4946e1258842bc159e5dfde15b96/html5lib-1.0.1-py2.py3-none-any.whl
Collecting webencodings (from html5lib!=1.0b1,!=1.0b2,!=1.0b3,!=1.0b4,!=1.0b5,!=1.0b6,!=1.0b7,!=1.0b8,>=0.99999999pre->bleach->nbconvert->jupyter->-r requirements.txt (line 7))
Using cached https://files.pythonhosted.org/packages/f4/24/2a3e3df732393fed8b3ebf2ec078f05546de641fe1b667ee316ec1dcf3b7/webencodings-0.5.1-py2.py3-none-any.whl
Building wheels for collected packages: pyyaml, tornado
Running setup.py bdist_wheel for pyyaml … done
Stored in directory: /home/m1035364/.cache/pip/wheels/ad/da/0c/74eb680767247273e2cf2723482cb9c924fe70af57c334513f
Running setup.py bdist_wheel for tornado … done
Stored in directory: /home/m1035364/.cache/pip/wheels/a3/fc/8b/cc9cae4f0c829663a49cc652ce7d994fa65434d61bb819c3d5
Successfully built pyyaml tornado
tensorflow 1.10.0 has requirement numpy<=1.14.5,>=1.13.3, but you’ll have numpy 1.15.1 which is incompatible.
tensorflow 1.10.0 has requirement protobuf>=3.6.0, but you’ll have protobuf 3.3.0 which is incompatible.
tensorflow-gpu 1.10.1 has requirement numpy<=1.14.5,>=1.13.3, but you’ll have numpy 1.15.1 which is incompatible.
tensorflow-gpu 1.10.1 has requirement protobuf>=3.6.0, but you’ll have protobuf 3.3.0 which is incompatible.
tensorboard 1.10.0 has requirement protobuf>=3.4.0, but you’ll have protobuf 3.3.0 which is incompatible.
Installing collected packages: numpy, scipy, six, grpcio, absl-py, astor, werkzeug, protobuf, markdown, tensorboard, termcolor, gast, tensorflow, tensorflow-gpu, pyyaml, h5py, keras-applications, keras-preprocessing, keras, wcwidth, prompt-toolkit, parso, jedi, ptyprocess, pexpect, backcall, simplegeneric, typing, pickleshare, decorator, pygments, ipython-genutils, traitlets, ipython, backports-abc, tornado, jupyter-core, python-dateutil, pyzmq, jupyter-client, ipykernel, qtconsole, jupyter-console, Send2Trash, prometheus-client, jsonschema, nbformat, terminado, MarkupSafe, jinja2, mistune, pandocfilters, entrypoints, testpath, webencodings, html5lib, bleach, defusedxml, nbconvert, notebook, widgetsnbextension, ipywidgets, jupyter
Successfully installed MarkupSafe-1.0 Send2Trash-1.5.0 absl-py-0.4.1 astor-0.7.1 backcall-0.1.0 backports-abc-0.5 bleach-2.1.4 decorator-4.3.0 defusedxml-0.5.0 entrypoints-0.2.3 gast-0.2.0 grpcio-1.15.0 h5py-2.8.0 html5lib-1.0.1 ipykernel-4.9.0 ipython-6.5.0 ipython-genutils-0.2.0 ipywidgets-7.4.2 jedi-0.12.1 jinja2-2.10 jsonschema-2.6.0 jupyter-1.0.0 jupyter-client-5.2.3 jupyter-console-5.2.0 jupyter-core-4.4.0 keras-2.2.2 keras-applications-1.0.4 keras-preprocessing-1.0.2 markdown-2.6.11 mistune-0.8.3 nbconvert-5.4.0 nbformat-4.4.0 notebook-5.6.0 numpy-1.15.1 pandocfilters-1.4.2 parso-0.3.1 pexpect-4.6.0 pickleshare-0.7.4 prometheus-client-0.3.1 prompt-toolkit-1.0.15 protobuf-3.3.0 ptyprocess-0.6.0 pygments-2.2.0 python-dateutil-2.7.3 pyyaml-3.13 pyzmq-17.1.2 qtconsole-4.4.1 scipy-1.1.0 simplegeneric-0.8.1 six-1.11.0 tensorboard-1.10.0 tensorflow-1.10.0 tensorflow-gpu-1.10.1 termcolor-1.1.0 terminado-0.8.1 testpath-0.3.1 tornado-5.1 traitlets-4.3.2 typing-3.6.6 wcwidth-0.1.7 webencodings-0.5.1 werkzeug-0.14.1 widgetsnbextension-3.4.2

pip list

output like this
Package Version
——————- ———
absl-py 0.4.1
astor 0.7.1
backcall 0.1.0
backports-abc 0.5
bleach 2.1.4
certifi 2018.8.24
chardet 3.0.4
decorator 4.3.0
defusedxml 0.5.0
entrypoints 0.2.3
gast 0.2.0
grpcio 1.15.0
h5py 2.8.0
html5lib 1.0.1
idna 2.7
ipykernel 4.9.0
ipython 6.5.0
ipython-genutils 0.2.0
ipywidgets 7.4.2
jedi 0.12.1
Jinja2 2.10
jsonschema 2.6.0
jupyter 1.0.0
jupyter-client 5.2.3
jupyter-console 5.2.0
jupyter-core 4.4.0
Keras 2.2.2
Keras-Applications 1.0.4
Keras-Preprocessing 1.0.2
Markdown 2.6.11
MarkupSafe 1.0
mistune 0.8.3
nbconvert 5.4.0
nbformat 4.4.0
notebook 5.6.0
numpy 1.15.1
pandocfilters 1.4.2
parso 0.3.1
pexpect 4.6.0
pickleshare 0.7.4
pip 10.0.1
prometheus-client 0.3.1
prompt-toolkit 1.0.15
protobuf 3.3.0
ptyprocess 0.6.0
Pygments 2.2.0
python-dateutil 2.7.3
PyYAML 3.13
pyzmq 17.1.2
qtconsole 4.4.1
requests 2.19.1
scipy 1.1.0
Send2Trash 1.5.0
setuptools 39.1.0
simplegeneric 0.8.1
six 1.11.0
tensorboard 1.10.0
tensorflow 1.10.0
tensorflow-gpu 1.10.1
termcolor 1.1.0
terminado 0.8.1
testpath 0.3.1
tornado 5.1
traitlets 4.3.2
typing 3.6.6
urllib3 1.23
wcwidth 0.1.7
webencodings 0.5.1
Werkzeug 0.14.1
wheel 0.31.1
widgetsnbextension 3.4.2

for the latest version of  tensorflow you need to update it type cmd

pip install –upgrade tensorflow

–output
Collecting tensorflow
Using cached https://files.pythonhosted.org/packages/69/90/357f5f0e7da99bc314f84f01922d95f3d52b008ec3f70558886b14639820/tensorflow-1.10.1-cp34-cp34m-manylinux1_x86_64.whl
Requirement not upgraded as not directly required: termcolor>=1.1.0 in ./hello_tensor/lib/python3.4/site-packages (from tensorflow) (1.1.0)
Requirement not upgraded as not directly required: absl-py>=0.1.6 in ./hello_tensor/lib/python3.4/site-packages (from tensorflow) (0.4.1)
Requirement not upgraded as not directly required: setuptools<=39.1.0 in ./hello_tensor/lib/python3.4/site-packages (from tensorflow) (39.1.0)
Requirement not upgraded as not directly required: wheel>=0.26 in ./hello_tensor/lib/python3.4/site-packages (from tensorflow) (0.31.1)
Requirement not upgraded as not directly required: grpcio>=1.8.6 in ./hello_tensor/lib/python3.4/site-packages (from tensorflow) (1.15.0)
Collecting numpy<=1.14.5,>=1.13.3 (from tensorflow)
Using cached https://files.pythonhosted.org/packages/6a/69/24b5d5c2466df479ed42f970a61eb570f57d8a20bd79e44ec39ee37ded12/numpy-1.14.5-cp34-cp34m-manylinux1_x86_64.whl
Requirement not upgraded as not directly required: six>=1.10.0 in ./hello_tensor/lib/python3.4/site-packages (from tensorflow) (1.11.0)
Requirement not upgraded as not directly required: gast>=0.2.0 in ./hello_tensor/lib/python3.4/site-packages (from tensorflow) (0.2.0)
Requirement not upgraded as not directly required: tensorboard<1.11.0,>=1.10.0 in ./hello_tensor/lib/python3.4/site-packages (from tensorflow) (1.10.0)
Collecting protobuf>=3.6.0 (from tensorflow)
Using cached https://files.pythonhosted.org/packages/61/52/463bac997cee19c74e1aa9153e4aef1af26737f90c91837c13efa0225c25/protobuf-3.6.1-cp34-cp34m-manylinux1_x86_64.whl
Requirement not upgraded as not directly required: astor>=0.6.0 in ./hello_tensor/lib/python3.4/site-packages (from tensorflow) (0.7.1)
Requirement not upgraded as not directly required: werkzeug>=0.11.10 in ./hello_tensor/lib/python3.4/site-packages (from tensorboard<1.11.0,>=1.10.0->tensorflow) (0.14.1)
Requirement not upgraded as not directly required: markdown>=2.6.8 in ./hello_tensor/lib/python3.4/site-packages (from tensorboard<1.11.0,>=1.10.0->tensorflow) (2.6.11)
Installing collected packages: numpy, protobuf, tensorflow
Found existing installation: numpy 1.15.1
Uninstalling numpy-1.15.1:
Successfully uninstalled numpy-1.15.1
Found existing installation: protobuf 3.3.0
Uninstalling protobuf-3.3.0:
Successfully uninstalled protobuf-3.3.0
Found existing installation: tensorflow 1.10.0
Uninstalling tensorflow-1.10.0:
Successfully uninstalled tensorflow-1.10.0
Successfully installed numpy-1.14.5 protobuf-3.6.1 tensorflow-1.10.1

Go to File in pycharm and click on Invalidate and restart same option in dialog you select and wait for pycharm to start again. you are ready to test tensor flow

use the old project virtual env for new project just activate it so type cmd

source ~/PycharmProjects/hello_tensor/hello_tensor/bin/activate

to remove it type cmd

deactivate

 

jupyter notebook

 

 

By navalkishorjha