Son zamanlarda dizüstü bilgisayarımı Snow Leopard'a güncelledi, TeX'i güncellendi ve 3.1115926 (TeX Live 2011/MacPorts 2011_5) sürümüne yükledim ve Python 2.7.3'ü yükledim. Tüm bu yüklemelerden sonra, Macport selfupdate ve Macport güncellemesini eskidüm. Ben matplotlib içinde TEX'i kullanmaya çalıştığınızda Ancak, şimdi, aşağıdaki alırsınız:Python: Matplotlib'de Metin Render Edilemiyor
os.environ['PATH'] = os.environ['PATH'] + ':/opt/local/bin/latex'
which latex
beri /opt/local/bin/latex
vermiştir:
LaTeX was not able to process the following string:'lp'
Here is the full report generated by LaTeX:
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (TeX Live 2011/MacPorts 2011_5)
restricted \write18 enabled.
entering extended mode (./64a53cc27244d5ee10969789771e33fa.tex
LaTeX2e <2009/09/24>
Babel <v3.8l> and hyphenation patterns for english, dumylang, nohyphenation, cz
ech, slovak, dutch, ukenglish, usenglishmax, basque, french, german-x-2009-06-1
9, ngerman-x-2009-06-19, german, ngerman, swissgerman, italian, polish, portugu
ese, spanish, catalan, galician, ukenglish, loaded.
(/opt/local/share/texmf-texlive-dist/tex/latex/base/article.cls
Document Class: article 2007/10/19 v1.4h Standard LaTeX document class
(/opt/local/share/texmf-texlive-dist/tex/latex/base/size10.clo))
! LaTeX Error: File `type1cm.sty' not found.
Type X to quit or <RETURN> to proceed, or enter new name. (Default extension: sty)
l.3 \renewcommand
{\rmdefault}{pnc}^^M
No pages of output.
Benzer this previous question, ben üzerinden benim piton kodunda yolunu ayarlama çalıştı . Ancak, bu, aynı hata mesajı ile işe yaramadı. Ayrıca, bir önceki sorunun örneğinin yanı sıra tex yolunu da denedim. Değişiklik yok. Ayrıca işe yaramadı, ancak
matplotlib.rcParams['text.latex.preamble']=[r"\usepackage{amsmath}"]
:
Sonra yoluyla muhtemelen eksik paketleri zorlamaya çalıştı.
Çalışmalarımı yapabilmemin tek yolu, ideal olmayan rc('text', usetex=False)
dır. Herhangi bir yardım çok takdir edilecektir.
bu sabit 'sudo apt-get my Ubuntu 13.10 makinede Hala geçerli dvipng' –