[OS X TeX] Problem with minted and TeXShop

David Goldenberg goldenberg at biology.utah.edu
Thu Jun 5 12:16:21 EDT 2025


Thanks very much to Dick for his help in sorting out this problem.  As it turned out, the problem was a copy of Python located in /usr/local, installed with Homebrew. (For reasons that I no longer recall!) Once that was removed, minted worked from TeXShop with no problems.

The latest version of minted (as included with TeXLive 2025) includes all of the necessary Python elements within the TeXLive installation (in /usr/local), and only visible from TeXLive.  This seems to include a version of Python, itself, but I haven’t been able to figure out exactly where that is located. In any case, the version of Python in /usr/local/bin seems to have been used by minted instead of the one installed with minted, and then the other Python pieces couldn’t be found.  I have another Python installation (anaconda), and that seems to cause no conflicts with minted.

Thanks,
David


>> Hi,
>> Having learned about minted in a post to this group last month, I have been exploring it a bit. I have tried it with three different Macs with very similar, but not identical configurations. On two, I was able to get it to work without much trouble, but on the third, I am getting this error when I try to typeset a LaTeX file with minted from TeXShop:
>> 
>> ./minted_test.tex:61: Package minted Error: minted v3+ executable is not installed or is not added to PATH; or MiKTeX is being used with -aux-directory or -output-directory without setting a TEXMF_OUTPUT_DIRECTORY environment variable.
>> 
>> But, I can typset the file using pdflatex from the command line without any obvious problems. So, I presume this has something to do with how TeXShop is looking for what it needs.
>> 
>> In TeXShop, the path is set to:
>> /Library/TeX/texbin
>> and the LaTeX engine is set to:
>> pdflatex --file-line-error --synctex=1 -shell-escape
>> 
>> The latexminted.py executable is located in:
>> /Library/TeX/texbin 
>> (The file is an alias to /usr/local/texlive/2025/texmf-dist/scripts/minted/latexminted.py)
>> 
>> Any suggestions would be greatly appreciated!
>> 
>> Thanks,
>> David Goldenberg
--
School of Biological Sciences
University of Utah
257 South 1400 East
Salt Lake City, UT  84112-0840


E-mail: goldenberg at biology.utah.edu
Web page: http://goldenberg.biology.utah.edu




More information about the MacOSX-TeX mailing list