virtualenv-clone command not found

In this troubleshooting guide we learn how to fix virtualenv-clone command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

virtualenv-clone: command not found

or when using sudo you get the following error message

sudo: virtualenv-clone: command not found

Solutions to virtualenv-clone: command not found

How To Fix virtualenv-clone: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu virtualenv-clone is provided by python3-virtualenv-clone package.

python3-virtualenv-clone is:

Virtualenv provides a way to make virtualenv’s relocatable which could then be copied as 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.

This is the Python3 package.

To fix this problem, we can install more using the command below.

sudo apt-get -y install python3-virtualenv-clone

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install python3-virtualenv-clone.

sudo apt -y install python3-virtualenv-clone

Or if you have aptitude installed you can use the following command.

sudo aptitude install python3-virtualenv-clone

Summary

In this tutorial we learn how to fix virtualenv-clone command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.