pyenigma.py command not found

In this troubleshooting guide we learn how to fix pyenigma.py command not found error message

Introduction

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

pyenigma.py: command not found

or when using sudo you get the following error message

sudo: pyenigma.py: command not found

Solutions to pyenigma.py: command not found

How To Fix pyenigma.py: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu pyenigma.py is provided by python3-enigma package.

python3-enigma is:

Py-Enigma is a Python 3 library for simulating the Enigma machines used by the German armed forces (Wehrmacht) during World War

  1. Py-Enigma makes it possible to both encrypt and decrypt messages that can be sent to, or received from, actual Enigma machines used by the German army (Heer), air force (Luftwaffe), and navy (Kriegsmarine).

This package installs the library for Python 3.

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

sudo apt-get -y install python3-enigma

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

You can also use apt command to install python3-enigma.

sudo apt -y install python3-enigma

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

sudo aptitude install python3-enigma

Summary

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