How To Install python3-virtualenv-clone on Fedora 36

In this tutorial we learn how to install python3-virtualenv-clone in Fedora 36. python3-virtualenv-clone is Script to clone Python virtual environments

Introduction

In this tutorial we learn how to install python3-virtualenv-clone on Fedora 36.

What is python3-virtualenv-clone

A script for cloning a non-relocatable Python virtual environment. Virtualenv provides a way to make a virtual environment 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. Virtualenv-clone attempts to overcome these issues and provide a way to easily clone an existing virtualenv.

We can use yum or dnf to install python3-virtualenv-clone on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-virtualenv-clone.

Install python3-virtualenv-clone on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-virtualenv-clone using dnf by running the following command:

sudo dnf -y install python3-virtualenv-clone

Install python3-virtualenv-clone on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-virtualenv-clone using yum by running the following command:

sudo yum -y install python3-virtualenv-clone

How To Uninstall python3-virtualenv-clone on Fedora 36

To uninstall only the python3-virtualenv-clone package we can use the following command:

sudo dnf remove python3-virtualenv-clone

python3-virtualenv-clone Package Contents on Fedora 36

/usr/bin/virtualenv-clone
/usr/lib/python3.10/site-packages/__pycache__/clonevirtualenv.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/__pycache__/clonevirtualenv.cpython-310.pyc
/usr/lib/python3.10/site-packages/clonevirtualenv.py
/usr/lib/python3.10/site-packages/virtualenv_clone-0.5.7.dist-info
/usr/lib/python3.10/site-packages/virtualenv_clone-0.5.7.dist-info/INSTALLER
/usr/lib/python3.10/site-packages/virtualenv_clone-0.5.7.dist-info/LICENSE
/usr/lib/python3.10/site-packages/virtualenv_clone-0.5.7.dist-info/METADATA
/usr/lib/python3.10/site-packages/virtualenv_clone-0.5.7.dist-info/WHEEL
/usr/lib/python3.10/site-packages/virtualenv_clone-0.5.7.dist-info/entry_points.txt
/usr/lib/python3.10/site-packages/virtualenv_clone-0.5.7.dist-info/top_level.txt
/usr/share/doc/python3-virtualenv-clone
/usr/share/doc/python3-virtualenv-clone/README.md
/usr/share/licenses/python3-virtualenv-clone
/usr/share/licenses/python3-virtualenv-clone/LICENSE

References

Summary

In this tutorial we learn how to install python3-virtualenv-clone on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).