About the author
This exercise has no code. It is simply the exercise you complete to get your computer to run Python. You should follow these instructions as exactly as possible. For example, Mac OSX computers already have Python 2, so do not install Python 3 (or any Python).
WARNING! If you do not know how to use PowerShell on Windows or the Terminal on OSX or “Bash” on Linux, then you need to go learn that fi rst. I have included an abbreviated version of my book The Command Line Crash Course in the appendix. Go through that first and then come back to these instructions.
Here’s me doing this on my computer in Terminal. Your computer would be different, so see if you can figure out all the differences between what I did and what you should do.
To install python goto Python python.org and download the latest Python 3 version and install it. In my case I have python3.5 so in my all commands I will be using python3.5 in the terminal you need to use your version and respective command.
To install in Linux you need to use terminal commands
sudo apt-get updateThis will give you all available python version choose the latest one and install it, in my case it is python3.7
sudo apt-cache search python3. | grep "Interactive"
sudo apt-get install python3.7
Once Python is installed you need to install pip also, pip is useful to install different python module, which we will use later.
sudo apt-get install python3-pip
Now check your python version and pip installation
To install in windows you need to download the latest version from python, While installing make sure to select path option.
With this option, you can run python using cmd without giving the complete path to the compiler.
About the author
Please login to comment