How to install and configure Python on a hosted server

Thursday, October 6, 2016

How to install and configure Python on a hosted server



Developers know that you can’t spell LAMP (Linux, Apache, MySQL, Perl/PHP/Python) on many systems without Python. And although, you are probably well aware that LAMP is the server stack powering today’s Internet, you might be wondering why you should pay attention to Python. Read on for more about the power of Python and how to install and configure this high-level programming language on a hosted server.

What is Python?

Among all three aforementioned programming languages, Python is king. Why? Clear programs, code readability and convenience (read: fewer lines of code). Python takes the bite out of a developer’s job in some ways because, once written, this general-purpose language can run pretty much on any computer without requiring you to change the program. Python is key to such Internet essential programs as the GNU Mailman, mailing-list manager; Yum, the Red Hat Enterprise Linux (RHEL) family’s package manager; and the Zope content-management system (CMS) application server.

How to check whether Python is already installed

Chances are Python is already installed on your hosted Linux server. If you’re unsure, follow these easy steps:

1. Run the following from your ssh terminal:

Note: Keep in mind /usr/bin/python is the default location for the python executables.

2. Use the following command to see which version of Python you’re working with:

0 comments :

Post a Comment