Skip to Content
Linux Administration Cookbook
book

Linux Administration Cookbook

by Adam K. Dean
December 2018
Beginner
826 pages
22h 54m
English
Packt Publishing
Content preview from Linux Administration Cookbook

Python virtualenv

Python has an inherent problem  conflicting package versions – and because of this, virtualenv is a thing. Effectively, virtualenv is a way to segregate installs so that they don't conflict, and you can (potentially) easily install multiple versions of the same package.

One use case for this might be Molecule, a testing framework designed for Ansible roles. Versions 1 and 2 of Molecule are incompatible with each other, but you could definitely have some Ansible roles in your infrastructure written for version 1 (which no one is going to update any time soon, because there's more pressing issues... there's always more pressing issues.) We have virtualenv though, so we can install both Molecule 1 and Molecule 2 without worrying ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Practical Linux Security Cookbook - Second Edition

Practical Linux Security Cookbook - Second Edition

Tajinder Kalsi
Mastering Linux Administration

Mastering Linux Administration

Alexandru Calcatinge, Julian Balog

Publisher Resources

ISBN: 9781789342529Supplemental Content