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

Everything you need to migrate, including automatic migration tools
Get your Python 2.7 to 3.X Migration Guide
Get your guide to migrating from Python 2.7 to 3.X

Since January 1, 2020, Python 2 is no longer supported. If you haven't yet ported over to Python 3, this comprehensive guide will show you how and why you should do it. 

Even though you might worry about the costs associated with porting—understandably so—the price of sticking with obsolete code is much higher.

Some of the main reasons you should seriously consider the switch include increased security and a number of brand new features to help improve performance. 

If you care about the sustainability, performance, and the long-term prospects of your software, upgrading to Python 3 should be an obvious course of action. The longer you delay it, the more difficult it will become to keep your projects up to date. 

To help you complete the switch step by step, we've prepared a comprehensive migration guide. You can download it by filling in the form on this page.

What you’ll find inside:

  • plenty of tips on how to ensure compatibility with Python 3,
  • a detailed guide to help you migrate from Python 2.7 to Python 3.