py2dsp command not found

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

Introduction

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

py2dsp: command not found

or when using sudo you get the following error message

sudo: py2dsp: command not found

Solutions to py2dsp: command not found

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

In Ubuntu py2dsp is provided by pypi2deb package.

pypi2deb is:

This package provides these tools:

  • py2dsp - converts PyPI package to Debian source package
  • pypi2debian - converts PyPI repository to Debian repository

Features:

  • uses PyPI metadata
  • supports Python 2.X, 3.X and PyPy
  • guesses build dependencies
  • reuses existing Debian package names if already packaged in Debian
  • creates -doc package with Sphinx regenerated documentation
  • generates ITP email template
  • easy to customise (profiles, overrides, templates)
  • uses Debian tools to generate files if possible
  • integrates with dh-python’s tools
  • asynchronous

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

sudo apt-get -y install pypi2deb

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

You can also use apt command to install pypi2deb.

sudo apt -y install pypi2deb

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

sudo aptitude install pypi2deb

Summary

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