J'ai un petit soucie, je suis sur Texlive 2019, TeXShop V 4.3 , anaconda3.
Je souhaite utiliser Pythontex , impossible d'obtenir quelque chose.
J'ai d'abord utiliser les indications qui se trouve dans le doc (THE PYTHONTEX ENGINE) ça ne donne rien à la place des résultats j'ai ??
Ensuite j'ai télécharger le fichier Pythontex-platexmkrc.zip et j'ai suivi les indications ,cette fois ci j'ai ce message d'erreur:
Code : Tout sélectionner
[1{/usr/local/texlive/2019/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./testpythontex.aux) ){/usr/local/texlive/2019/texmf-dist/fonts/enc/dvips/lm/l
m-ec.enc}</usr/local/texlive/2019/texmf-dist/fonts/type1/public/lm/lmbx12.pfb><
/usr/local/texlive/2019/texmf-dist/fonts/type1/public/lm/lmr12.pfb>
Output written on testpythontex.pdf (1 page, 36970 bytes).
SyncTeX written on testpythontex.synctex.gz.
Transcript written on testpythontex.log.
=== Pythontex being used
=== Creating rule 'pythontex testpythontex'
Latexmk: Missing input file: 'pythontex-files-testpythontex/testpythontex.pytxmcr' from line
'No file pythontex-files-testpythontex/testpythontex.pytxmcr.'
Latexmk: Log file says output to 'testpythontex.pdf'
Latexmk: Missing input file: 'pythontex-files-testpythontex/testpythontex.pytxmcr' from line
'No file pythontex-files-testpythontex/testpythontex.pytxmcr.'
Rule 'pythontex testpythontex': The following rules & subrules became out-of-date:
'pythontex testpythontex'
------------
Run number 1 of rule 'pythontex testpythontex'
------------
------------
Running 'pythontex --interpreter python:/anaconda3/bin/python "testpythontex.pytxcode"'
------------
=== TeX engine is 'pdfTeX'
Latexmk: applying rule 'pythontex testpythontex'...
Traceback (most recent call last):
File "/Library/TeX/texbin/pythontex", line 50, in <module>
import pythontex2 as pythontex
File "/usr/local/texlive/2019/texmf-dist/scripts/pythontex/pythontex2.py", line 61, in <module>
from pygments.styles import get_all_styles
ImportError: No module named pygments.styles
Collected error summary (may duplicate other messages):
pythontex testpythontex: Command for 'pythontex testpythontex' gave return code 1
Latexmk: Use the -f option to force complete processing,
unless error was exceeding maximum runs, or warnings treated as errors.
Latexmk: Errors, so I did not complete making targets
Code : Tout sélectionner
% !TEX program = pdflatexmk
\documentclass[12pt,french]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{babel}
\usepackage{pythontex}
\setlength{\parindent}{0pt}
\begin{document}
\begin{pyverbatim}
import math
def racine(a):
return math.sqrt(a)
print(racine(9))
\end{pyverbatim}
\bigskip
\begin{pyconsole}
var = 1 + 1
var
\end{pyconsole}
\end{document}