Estoy tratando de instalar el paquete "Pygments" en Python a través de la terminal en mi Mac para poder utilizar el paquete "minted" en Latex.
He descargado el paquete a través de la terminal usando el siguiente código:
curl https://bootstrap.pypa.io/get-pip.py > get-pip.py
seguido por:
sudo python get-pip.py
y luego
sudo pip install pygments
Tomó un par de intentos de repetir los mismos comandos, pero finalmente se instaló con éxito. Aunque no sé qué hacer ahora. Sigo recibiendo el mismo error de LaTex:
Package minted Error: You must have `pigmentize' installed to use this package.
¿Alguien tiene alguna experiencia con este problema y podría proporcionar alguna ayuda?
Primero, busque la carpeta donde se guarda pygmentize
$ which pygmentize
/Users/ggautier/anaconda/bin/pygmentize
Agregue la ruta, es decir, /Users/ggautier/anaconda/bin en el campo "texpath"
// Platform settings: adapt as needed for your machine
// ------------------------------------------------------------------
"osx": {
// Path used when invoking tex & friends; MUST include $PATH
"texpath" : "$PATH:/Users/ggautier/anaconda/bin:/Library/TeX/texbin:/usr/texbin:/usr/local/bin:/opt/local/bin:"
// Path to PDF viewer, if needed
// TODO think about it. Also, maybe configure it here!
}
mmmmmm
sudo pip install pygments
como se indica en la página de inicio de pygments?