python – Use minted in LaTex


I’ve been working on LaTex and I need to add code snippets of python in my work. I’m currently working on VSCode using the LaTex Workshoop extension. Recently, I saw that there was this library “minted” that was used for what I needed. I started setting up everythig, I even configured the LaTex workshop to work correctly with minted. I also installed the pygments library on my computer. Even with all this, I keep getting this error:

Package minted: Missing Pygments output; \inputminted was probably given a file that does not exist– otherwise, you may need the outputdir package option, or may be using an incompatible build tool, or may be using frozencache with a missing file.

Has someone come across this error?

Leave a Reply

Your email address will not be published. Required fields are marked *