dh_virtualenv command not found

In this troubleshooting guide we learn how to fix dh_virtualenv command not found error message

Introduction

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

dh_virtualenv: command not found

or when using sudo you get the following error message

sudo: dh_virtualenv: command not found

Solutions to dh_virtualenv: command not found

How To Fix dh_virtualenv: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu dh_virtualenv is provided by dh-virtualenv package.

dh-virtualenv is:

This package provides a dh sequencer that helps you to deploy your virtualenv wrapped installation inside a Debian package.

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

sudo apt-get -y install dh-virtualenv

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

You can also use apt command to install dh-virtualenv.

sudo apt -y install dh-virtualenv

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

sudo aptitude install dh-virtualenv

Summary

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