Python Hands-on

Virtualenv and venv: Python virtual environments explained

Take advantage of virtual environments in Python to create and manage separate environments for your Python projects.

Virtualenv and venv: Python virtual environments explained
NoLimit46 / GettyImages

Python Hands-on

Show More

Of all the reasons Python is a hit with developers, one of the biggest is its broad and ever-expanding selection of third-party packages. Convenient toolkits for everything from ingesting and formatting data to high-speed math and machine learning are just an import or pip install away.

But what happens when those packages don’t play nice with each other? What do you do when different Python projects need competing or incompatible versions of the same add-ons? That’s where Python virtual environments come into play.

Copyright © 2021 IDG Communications, Inc.

How to choose a low-code development platform