How To Install python-virtualenv.noarch on Amazon Linux 2

In this tutorial we learn how to install python-virtualenv.noarch in Amazon Linux 2. python-virtualenv.noarch is Tool to create isolated Python environments

Introduction

In this tutorial we learn how to install python-virtualenv.noarch on Amazon Linux 2.

What is python-virtualenv.noarch

virtualenv is a tool to create isolated Python environments. virtualenv is a successor to workingenv, and an extension of virtual-python. It is written by Ian Bicking, and sponsored by the Open Planning Project. It is licensed under an MIT-style permissive license.

We can use yum to install python-virtualenv.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install python-virtualenv.noarch.

Install python-virtualenv.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python-virtualenv.noarch using yum by running the following command:

sudo yum -y install python-virtualenv.noarch

How To Uninstall python-virtualenv.noarch on Amazon Linux 2

To uninstall only the python-virtualenv.noarch package we can use the following command:

sudo yum remove python-virtualenv.noarch

python-virtualenv.noarch Package Contents on Amazon Linux 2

/usr/bin/virtualenv
/usr/bin/virtualenv-2
/usr/bin/virtualenv-2.7
/usr/lib/python2.7/site-packages/virtualenv-15.1.0-py2.7.egg-info
/usr/lib/python2.7/site-packages/virtualenv.py
/usr/lib/python2.7/site-packages/virtualenv.pyc
/usr/lib/python2.7/site-packages/virtualenv.pyo
/usr/lib/python2.7/site-packages/virtualenv_support
/usr/lib/python2.7/site-packages/virtualenv_support/__init__.py
/usr/lib/python2.7/site-packages/virtualenv_support/__init__.pyc
/usr/lib/python2.7/site-packages/virtualenv_support/__init__.pyo
/usr/lib/python2.7/site-packages/virtualenv_support/argparse-1.4.0-py2.py3-none-any.whl
/usr/lib/python2.7/site-packages/virtualenv_support/pip-9.0.1-py2.py3-none-any.whl
/usr/lib/python2.7/site-packages/virtualenv_support/setuptools-28.8.0-py2.py3-none-any.whl
/usr/lib/python2.7/site-packages/virtualenv_support/wheel-0.29.0-py2.py3-none-any.whl
/usr/share/doc/python-virtualenv-15.1.0
/usr/share/doc/python-virtualenv-15.1.0/AUTHORS.txt
/usr/share/doc/python-virtualenv-15.1.0/LICENSE.txt
/usr/share/doc/python-virtualenv-15.1.0/PKG-INFO
/usr/share/doc/python-virtualenv-15.1.0/changes.rst
/usr/share/doc/python-virtualenv-15.1.0/development.rst
/usr/share/doc/python-virtualenv-15.1.0/index.rst
/usr/share/doc/python-virtualenv-15.1.0/installation.rst
/usr/share/doc/python-virtualenv-15.1.0/reference.rst
/usr/share/doc/python-virtualenv-15.1.0/userguide.rst

References

Summary

In this tutorial we learn how to install python-virtualenv.noarch on Amazon Linux 2 using yum.