Introduction
In this chapter, we will have a look at the process of installing Python on major operating systems.
Python Installation
Here are some environments, where you run your Python scripts easily. It's a long list consisting of many environments. Let's have a look:
- Windows
- Mac
- Linux
- Solaris
- Amiga
- Palm OS
And several others too.
Finding Python
And you will get each and every piece of information regarding Python, like tutorials, documentations, snippets, latest news, version details, and so on.
Getting Things Done
Now to explain how to set the environment up in several environments.
Python | In Mac
Just use the following simple procedure and let Python do everything for you:
Python | In Linux
Just use the following simple procedure and let Python do everything for you:
- Just visit http://www.python.org/
- Just look for the "Download" option there
- Follow the link and download your preferable version (Zip File)
- Extract all those and setup
- Now, run the configuration script
- Follow the instructions and you're done.
Setting up Path in Environments
Path | In Mac
In a Mac machine, the installer itself handles the Path details for you. So you don't need to worry about that if you are having Mac with you.
But one needs to invoke the Python Interpreter. You can invoke the Python interpreter from any directory (but you must add the Python directory to your Path).
Path | In Linux
You can find the pathname in Linux the same as for "PATH" in Windows (but here it will be case sensitive).
Use the following procedure:
- In the "Bash Shell"
- Type- PATH=”$PATH:/user/local/bin/python”
- Press Enter and it's done.
Conclusion
In the next chapter, we will learn how to install python on windows.