Fix Python – error: command ‘gcc’ failed with exit status 1 while installing eventlet

I wanted to install eventlet on my system in order to have “Herd” for software deployment.. but the terminal is showing a gcc error:
root@agrover-OptiPlex-780:~# easy_install -U eventlet
Searching for eventlet
Reading http://pypi.python.org/simple/eventlet/
Reading http://wiki.secondlife.com/wiki/Eventlet
Reading http://eventlet.net
B….

Fix Python – Unable to set default python version to python3 in ubuntu

I was trying to set default python version to python3 in Ubuntu 16.04. By default it is python2 (2.7). I followed below steps :
update-alternatives –remove python /usr/bin/python2
update-alternatives –install /usr/bin/python python /usr/bin/python3

but I’m getting the following error for the second statement,
rejeesh@rejeesh-Vostro-1015:~$ upda….

Fix Python – How to tell if tensorflow is using gpu acceleration from inside python shell?

I have installed tensorflow in my ubuntu 16.04 using the second answer here with ubuntu’s builtin apt cuda installation.
Now my question is how can I test if tensorflow is really using gpu? I have a gtx 960m gpu. When I import tensorflow this is the output
I tensorflow/stream_executor/dso_loader.cc:105] successfully opened CUDA library libcublas.s….