Python, Software Development, UX and Product Design - Blog - STX Next

Python 2.7 to 3.X Migration Guide: How to Port from Python 2 to Python 3

Written by Maciej Urbański | Apr 16, 2019 5:14:00 AM

Python 2 lost support on January 1, 2020. The time is nigh to upgrade to Python 3.

But is there a way to do it without disrupting your application development and operation?

This guide will show you how to upgrade to Python 3 quickly, easily, and cost-effectively.

We’ll assume you already have the latest Python 2.7 and are targeting Python 3.6 or newer.

Anything lower than Python 3.5 would be ill-advised, since it is already the oldest version still being supported and its end-of-life is scheduled for September 13, 2020.

One last thing before we kick off with our migration guide: in case you’re wondering just why exactly you should migrate to Python 3, this article right here is sure to answer all the questions you may have. It’s the “why” to the following guide’s “how.”