Loading video player…

Start Managing Multiple Python Versions With pyenv (Overview)

Have you ever wanted to contribute to a project that supports multiple versions of Python but aren’t sure how you would easily test all the versions? Are you ever curious about the latest and greatest versions of Python? Maybe you’d like to try out these new features, but you don’t want to worry about messing up your development environment. Luckily, managing multiple versions of Python doesn’t have to be confusing if you use pyenv.

This course will provide you with a great overview of how to maximize your time spent working on projects and minimize the time spent in headaches trying to use the right version of Python.

In this course, you’ll learn how to:

  • Install multiple versions of Python
  • Install the latest development version of Python
  • Switch between the installed versions
  • Use virtual environments with pyenv
  • Activate different Python versions and virtual environments automatically
Download

Course Slides (.pdf)

2.9 MB

00:00 Have you ever wanted to contribute to a project that supports multiple versions of Python, but aren’t sure how you would easily test all the versions? Or did you ever want to contribute to a project that uses another Python version than you currently have installed?

00:20 Are you curious about the latest and greatest versions of Python? Maybe you’d like to try out these new features but you don’t want to worry about messing up your development environment.

00:34 Luckily, managing multiple versions of Python doesn’t have to be a hassle when you use pyenv. Hi, my name is Johan Vergeer. In this course, I would like to provide you with a great overview of how to maximize your time spent working on projects and minimize the time spent with headaches, trying to use the right Python version.

01:03 In this course, you will learn how to install multiple versions of Python on your machine, install the latest development version of Python, switch between the installed versions, use virtual environments with pyenv, and finally, activate different Python versions and virtual environments automatically.

01:31 The examples in this course are created on macOS. I’ve also used pyenv on Linux, which works just as great. pyenv isn’t supported on Windows but there is a similar project called pyenv-win. We won’t go into pyenv-win in this course, but when you are on Windows feel free to check this out.

01:57 This is an advanced course, which requires you to have knowledge about a couple of things. First, running shell commands like cat, ls, pwd, et cetera. This course assumes you know these commands. And installing dependencies using a command line interface.

02:20 You might even have to do some debugging when you run into issues. Installing pyenv is pretty straightforward when you know your way around the command line, but some people run into issues every now and then.

02:35 So, without further ado, let’s get started in the next lesson with discussing why you would use pyenv and not just the Python version that comes installed on your system.

Become a Member to join the conversation.