g****g 发帖数: 1828 | 1 “First, ensure you have Python, and pdflatex. Make sure that the
python/scripts directory is in your path, and that pdflatex is in your path.”
程序好像安装成功了,但是运行不成功。我觉得是上面的原因。我用的ubuntu。怎么把
path改一下?而且是改成python的? | E*V 发帖数: 17544 | 2 echo $PATH
you will see the current one
PATH=$PATH:/path to/your/dir:......
path.”
【在 g****g 的大作中提到】 : “First, ensure you have Python, and pdflatex. Make sure that the : python/scripts directory is in your path, and that pdflatex is in your path.” : 程序好像安装成功了,但是运行不成功。我觉得是上面的原因。我用的ubuntu。怎么把 : path改一下?而且是改成python的?
| g****g 发帖数: 1828 | 3 where is the python/scripts directory?
【在 E*V 的大作中提到】 : echo $PATH : you will see the current one : PATH=$PATH:/path to/your/dir:...... : : path.”
| c*********k 发帖数: 4747 | 4 whereis python
【在 g****g 的大作中提到】 : where is the python/scripts directory?
| g****g 发帖数: 1828 | 5 $ which python
/usr/bin/python
【在 c*********k 的大作中提到】 : whereis python
| g****g 发帖数: 1828 | 6 error message is like this. i don't know if it's due the path incorrect.
just a guess.
$ topdrawer.py tutorial.tex
Traceback (most recent call last):
File "/usr/local/bin/topdrawer.py", line 33, in
main(sys.argv[1:])
File "/usr/local/bin/topdrawer.py", line 5, in main
import td.ui
File "/usr/local/lib/python2.6/dist-packages/td/ui.py", line 4, in
import Tkinter as tk
File "/usr/lib/python2.6/lib-tk/Tkinter.py", line 42, in
raise ImportError, str
【在 g****g 的大作中提到】 : “First, ensure you have Python, and pdflatex. Make sure that the : python/scripts directory is in your path, and that pdflatex is in your path.” : 程序好像安装成功了,但是运行不成功。我觉得是上面的原因。我用的ubuntu。怎么把 : path改一下?而且是改成python的?
| g****g 发帖数: 1828 | 7 never mind. after installing python-tk package, the tutorial works.
module>
【在 g****g 的大作中提到】 : error message is like this. i don't know if it's due the path incorrect. : just a guess. : $ topdrawer.py tutorial.tex : Traceback (most recent call last): : File "/usr/local/bin/topdrawer.py", line 33, in : main(sys.argv[1:]) : File "/usr/local/bin/topdrawer.py", line 5, in main : import td.ui : File "/usr/local/lib/python2.6/dist-packages/td/ui.py", line 4, in : import Tkinter as tk
|
|