[Tex/LaTex] How to install pygments on windows 7

mintedpygments

When I run LaTeX file its gives error as "! Package minted Error: You must have pygmentize installed to use this package", you must have pygments installed. when I go through minted documentation minted itself required pygments, so Tex friend How do I install this pygment, I don't know the procedure to install. Please guid me or any link pygement.exe file

Best Answer

As stated on its website, pygments is a tool written in Python. So you have to do the following:

  1. Download and install a Python 3.X version from https://www.python.org/downloads/. Make sure it's in your path.
  2. Open a shell in administrator mode and issue pip install Pygments.
  3. Compile your LaTeX document.