command -options filename. ext sudo apt-get install build-essential The “sudo” command gives permission to the terminal to modify your computer. This is necessary to install any program. You will be required to enter your password. The “apt-get install” command tells the computer to install the package “build-essential” which is required to install Python. sudo apt-get install libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev These are programs that Python uses to run correctly. They are also known as “dependencies”.
cd ~/Downloads/ The “cd” command changes to the correct working directory so the computer can find and put programs in the right place. wget http://python. org/ftp/python/2. 7. 5/Python-2. 7. 5. tgz
tar -xvf Python-2. 7. 5. tgz cd Python-2. 7. 5 Once again, we need to change the working directory. This time, we change to the newly created Python directory.
. /configure
make
sudo make install
Any text editor that can save files with a “. py” extension will do. Ubuntu 12. 04 or greater is packaged with the Gedit editor.
Be careful that the file is not saved as “hello_world. py. txt”.
Remember to use the “cd” command to change directories. If you need a list of all subdirectories at your current location, use the “ls” command. “ls” stands for “list subdirectories”.
python hello_world. py