Knowledgebase

Understanding Python Versions Print

  • python, cpanel, guide, howto, solution, zillionkinghost, hosting, support
  • 0

Which version to use.

WHAT MATTERS

Python 3 is current. Python 2 is obsolete and unsupported.

WHY THAT MATTERS

Code written for Python 2 does not run on Python 3 without changes.

WHAT ABOUT MINOR VERSIONS

Python 3 releases regularly, each adding features and dropping very old ones.

WHAT TO USE

A recent stable version, not the newest release on the day it appears.

WHY NOT THE NEWEST

Libraries take time to support a new release.

WHAT TO CHECK BEFORE CHOOSING

Which versions your hosting supports Which versions your libraries support

WHAT YOUR HOSTING OFFERS

cPanel's Python application feature offers a set of available versions.

Choose one supported by your dependencies.

WHAT NOT TO DO

Develop on one version and deploy on a very different one.

Differences produce failures that appear only in production.

WHAT TO RECORD

Which version your project requires.

WHERE

In your project documentation and dependency file.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot