mkdocs command not found

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

Introduction

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

mkdocs: command not found

or when using sudo you get the following error message

sudo: mkdocs: command not found

Solutions to mkdocs: command not found

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

In Ubuntu mkdocs is provided by mkdocs package.

mkdocs is:

MkDocs is a fast, simple and downright gorgeous static site generator that’s geared towards building project documentation. Documentation source files are written in Markdown, and configured with a single YAML configuration file.

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

sudo apt-get -y install mkdocs

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

You can also use apt command to install mkdocs.

sudo apt -y install mkdocs

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

sudo aptitude install mkdocs

Summary

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