knitpy command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
knitpy: command not found
or when using sudo you get the following error message
sudo: knitpy: command not found
Solutions to knitpy: command not found
How To Fix knitpy: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu knitpy is provided by python3-knitpy package.
python3-knitpy is:
Knitpy is an elegant, flexible and fast dynamic report generation with Python 3. It is a port of knitr and rmarkdown to Python and is used to convert pymd documents (*.pymd) to various other formats.
Codeblocks and inline code are executed via IPython kernels and the results are inserted into the document. Documents should follow rmarkdown syntax substituting ‘python’ for ‘r’ if python code should be executed.
Features:
- Code blocks and inline code.
- Plots are shown inline.
- Output formats html, pdf and docx.
- Code chunk arguments eval, results (apart form “hold”), include and echo
- Errors in code chunks are shown in the document.
- Uses the IPython display framework, so rich output for objects implementing repr_html() or repr_markdown(). Mimetypes not understood by the final output format are automatically converted via pandoc.
- Can be imported and used from Python.
- Supports a –debug mode.
To fix this problem, we can install more using the command below.
sudo apt-get -y install python3-knitpy
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install python3-knitpy.
sudo apt -y install python3-knitpy
Or if you have aptitude installed you can use the following command.
sudo aptitude install python3-knitpy
Summary
In this tutorial we learn how to fix knitpy command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.