14 articles Python Page 2 / 2

Python, a clean programming language enforcing syntax above all.

Using multiple versions with Passenger

Overview Passenger provides an intelligent polyglot launcher interface for managing Node.js, Ruby, and Python processes. This can be teamed up with pyenv to effortlessly launch multiple Python applications with a single shell command and .htaccess directive. These steps are only necessary to use supplementary Python versions available on the server. If the default version works…

Changing Python versions

Overview Recent platforms (v6+) support multiple Python interpreters from the shell using pyenv. pyenv allows seamless switching between available Python versions, and manages version-specific package installations too. Basics All commands are done from the terminal. Listing versions To get a current list of available Python interpreters, use pyenv versions: [myadmin@sol ~]$ pyenv versions system 2.7.8 * 3.3.5…

Django quickstart

Overview Django is a web framework based on Python. Python is available on all packages, and a Django application may be uploaded on any package. But, to create a new project on the server and complete this quickstart, a package with terminal access is necessary. This quickstart covers using Django with Passenger available on v6+ platforms. Quickstart From…

Installing packages

Overview Python uses a package management system called “pip“. Package management is available on newer hosting platforms v4.5 and above. Terminal access is necessary to use the feature. Package management All packages installed reside under /usr/local/lib/python/<VERSION> where <VERSION> is the Python version. Python versions may be switched on-the-fly using pyenv on v6 platforms. Important platform info: all commands listed here use pip.…