Pygments in LaTeX

if we get an error when using Minted package in LaTeX, the following link shows how to fix the issue:

https://superuser.com/questions/816340/minted-cannot-find-pygmentize-in-texstudio-on-windows-7

To create the pdf file as output of our document, we should use the command line below:

Windows>pdflatex -shell-escape test.tex

To avoid any error when compiling the document source, add [cache=false] on the minted package initialisation.

\usepackage[cache=false]{minted}