Configure Python Environment

Configure Python environment in Ubuntu machine.

create a file called python-env.sh and copy paste below command.

sudo apt-get install python-pip 
sudo apt-get install python-virtualenv 

# create a virtualenv 
mkdir ~/env cd ~/env virtualenv myenv 

#activate environment 
source ~/env/myenv/bin/activate 

#install jupyter notebook 
pip install jupyter

save it in your home folder and open a terminal

sudo chmod +x python.env.sh
./python.env.sh

after installing run this command

jupyter notebook   

open a browser http://localhost:8888