I have 2 versions of Python on my machine. Version 2.7.10 can be invoked with python, whereas python3 uses 3.5.0 under the hood.
I'd like to use minted with python3, which is why I installed Pygments via pip3. When I compile a LaTeX document that contains minted macros, it can't find the library. I assume minted uses the standard python command and therefore version 2.7.10, which doesn't have Pygments installed.
Is there a way to tell minted to switch to version 3?
EDIT: As pointed out by G. Poore, minted invokes pygmentize. Although which pygmentize points to Pygments under version 3, I tried to set it manually:
\usepackage{minted}
\renewcommand{\MintedPygmentize}{/path/to/pygmentize}
Unfortunately I still get You must have 'pygmentize' installed to use this package with minted 2.1.
python3available andpygmentizeinstalled for that interpreter, I ran into this confusing problem.mintedmainly works becausepygmentizewas available, but stuff likeautogobbleand\inputminted, which callpython -c, didnt' work. Ideally, both programs need to be available. Thepython->python3aliasing can be done via symlinking orupdate-alternatives --install /usr/bin/python python /usr/bin/python3 1on Debian. I saw thesh: python not founderror but had incorrectly assumed it switched topython3(but it'spygmentize). – Alex Povel Feb 08 '21 at 15:38