I have been trying to install pythontex on Windows 8 (64-bit) with MiKTeX installed.
- I have tried running "latex pythontex.ins" from the directory but it doesn't work.
- I have tried using the package manager but pythontex is not there.
- I have tried running "tlpkg install pythontex" but it seems its not installed.
- I have tried running "python pythontex_install_texlive.py" from the directory but it complains that it cannot find TEXMF.
Please Help :(
kpsewhich -var-value=TEXMFDISTwork for you on the command line? – G. Poore Dec 01 '13 at 05:02pythonpackage, which is different frompythontex. You may need to tell your package manager to update its database (or runmktexlsron the command line). Once that is done, I would expect things to work. Keep in mind that compiling will be a three-step process: run LaTeX, runpythontex <file>, run LaTeX again. If yourC:\textmf\binisn't on your PATH, you will need to add it so thatpythontex.execan be found (pythontex.exeshould have been created in that location). – G. Poore Dec 02 '13 at 01:16mktexlsr, and also updated the package manager using the GUI. no luck :( – sourcevault Dec 02 '13 at 02:08runscript.exeis for TeX Live, so you may not have it. (If you did, it might be somewhere underc:\Program Files\MiKeTeX 2.9, probably in abindirectory.) You could take the samplepythontex.batand edit it so that it has the right path topythontex.py, then put it in thebindirectory. – G. Poore Dec 02 '13 at 02:31scriptdirectory or should i copy the scripts it needs into thebindirectory ? – sourcevault Dec 02 '13 at 02:35batfile and nowpythontexworks from thecmd. it still doesnt show up in the package manager but are you sure that this is fine ? can i just pass in the.texfile intopythontexfromcmdorbashand things will work, without latex not registering it in the package manager :( – sourcevault Dec 02 '13 at 02:48latexrecognizes pythontex.sty also i am able to runpythontexfrom thecmdon<file>.texhowever no.dviis produced. The thing is i usually dont use.dvii prefer directly outputing to pdf usingpdflatex. Can i runpdflatexinstead oflatex. – sourcevault Dec 02 '13 at 03:20pythontexislatex <filename>.texpythontex <filename>.texlatex <filename>.texam i correct ?
– sourcevault Dec 02 '13 at 03:22PythonTexis complaining. It just hello world :( – sourcevault Dec 02 '13 at 03:53pdflatexis fine...it's what I usually use. You are getting an error because by default PythonTeX imports theprint()function from__future__. If you don't want that, then\usepackage[pyfuture=none]{pythontex}– G. Poore Dec 02 '13 at 04:16