Python is a fun language, the syntax is what feels so nice about it and how the indents are used to format the code, after using Jade and Sass, this comes very naturally to me.
The second way is by compiling it on your system.
While both the way listed above are the correct way to install Python3 updating to the latest version might a bit of a work because the above methods don’t update by themselves or with a help of any command line tools.
The third way is to install it with the help of Homebrew
Homebrew is a package for Mac that lets you install any package a viable in its repository with less that 4 commands depending on the install instructions.
If you have Homebrew already installed on your system you are good to go, if not you can install it from here
Python3 can be installed by entering this simple command in terminal.
brew install python3
Linking Python3 apps and utilities by entering this command
brew linkapps python3
You can update to the latest version of Python 3 by entering this command
brew upgrade python3
Now you are good to go with your Python3 based development environment on your Mac
- Enter the command below to get root privilege.
- Installing Development Tools
yum groupinstall ‘development tools’
- Installing dependencies require by Python 2.7.6
yum install -y zlib-dev openssl-devel sqlite-devel bzip2-devel wget
- Downloading Python 2.7.6 source.
- Unpacking Python 2.7.6 source.
tar -xvf Python-2.7.6.tar.xz
- Entering into Python 2.7.6 source directory.
- Commands used to compile and install Python 2.7.6.
Now we have Python 2.7.6 installed on our CentOS system. If you have any problem feel free to leave a comment below.