5

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

  • Install Python and then use it. It's all described on its website. – TeXnician May 13 '17 at 17:47
  • I already have python versions of 3.4@TeXnician – Biki Teron May 13 '17 at 17:50
  • in linux there is no problem in running the same latex file but in windows there gives me the error@TeXnician – Biki Teron May 13 '17 at 17:55
  • 2
    Get rid of windows. – JPi May 13 '17 at 17:57
8

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.
  • 1
    Thanking you, after "pip install Pygments" i need to set the environtment variable as "C:\Python27\Scripts" then it is working normally. @TeXnician – Biki Teron May 14 '17 at 19:24
  • 1
    @Biki: how to to set the environtment variable as "C:\Python27\Scripts"? (I am using Windows 10 ) – Black Mild Oct 14 '18 at 19:32
  • 1
    @BikiTeron I know it is very old post. But now I get same problem. I installed pycharm community edition 2017,using windows 10. Also get a folder name Pygments in C:\Users\Ellena\Anaconda2\Lib\site-packages path. Still got error in TexStudio. Package minted Error: You must have `pygmentize' installed to use this package. \begin{document}. How could you solve your problem? What is pip install Pygments? – Encipher Nov 27 '18 at 22:00
  • @Encipher Pip is a python package manager which may be used to install Pygments. Your folder name indicates that your installation of pygmentize is not in your path. Please use one of the many guides available online to add that path to PATH. – TeXnician Nov 28 '18 at 6:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.