How To Install python-virtualenv-clone on CentOS 7
Introduction
In this tutorial we learn how to install python-virtualenv-clone
on CentOS 7.
What is python-virtualenv-clone
A script for cloning a non-relocatable virtualenv. Virtualenv provides a way to make virtualenv’s relocatable which could then be copied as we wanted. However making a virtualenv relocatable this way breaks the no-site-packages isolation of the virtualenv as well as other aspects that come with relative paths and ‘/usr/bin/env’ shebangs that may be undesirable. Also, the .pth and .egg-link rewriting doesn’t seem to work as intended. This attempts to overcome these issues and provide a way to easily clone an existing virtualenv.
We can use yum
or dnf
to install python-virtualenv-clone
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install python-virtualenv-clone.
Install python-virtualenv-clone on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install python-virtualenv-clone
using yum
by running the following command:
Install python-virtualenv-clone on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install python-virtualenv-clone
using dnf
by running the following command:
How To Uninstall python-virtualenv-clone on CentOS 7
To uninstall only the python-virtualenv-clone
package we can use the following command:
References
Summary
In this tutorial we learn how to install python-virtualenv-clone
on CentOS 7 using yum
and dnf
.