|
|
|
|
Hello,
J'ai un petit souci pour appeler Tkinter avec Python :
yoan@PRECISION:~/Desktop/python$ python
Python 2.4.3 (#1, Aug 23 2006, 11:43:00)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from Tkinter import *
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/local/lib/python2.4/lib-tk/Tkinter.py", line 38, in ?
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
>>>
Configuration: Linux Firefox 2.0.0.1
Répondre à raspoute
|
Salut,
lami20j@debian:~$ ls -l /usr/bin/python lrwxrwxrwx 1 root root 9 2003-08-11 09:52 /usr/bin/python -> python2.4 lami20j@debian:~$ python Python 2.4.4 (#2, Jan 13 2007, 17:50:26) [GCC 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> Je ne sais pas si ça peut avoir une influence. Es-tu sous Sarge? Tu peux passer à Etch (pas besoin de tout réinstaller) - à toi de voir sed -i.orig 's/^/#/' /etc/apt/sources.listMets ça dans /etc/apt/sources.list deb ftp://ftp.fr.debian.org/debian/ etch main non-free contrib deb-src ftp://ftp.fr.debian.org/debian/ etch main non-free contrib deb http://security.debian.org/ etch/updates main contrib non-free deb-src http://security.debian.org/ etch/updates main contrib non-freeEnsuite tape apt-get update apt-get -u dist-upgrade Ton Sarge deviendra Etch :-)) lami20j |
La série de commande est trop longue pour que je la copie. Maintenant j'ai ça :
yoan@PRECISION:~$ python -V Python 2.5 yoan@PRECISION:~$ ls -l $(which python) lrwxrwxrwx 1 root root 18 2007-02-18 15:54 /usr/bin/python -> /usr/bin/python2.5 yoan@PRECISION:~$ python Python 2.5 (r25:51908, Oct 6 2006, 15:22:41) [GCC 4.1.2 20060928 (prerelease) (Ubuntu 4.1.1-13ubuntu4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> et Tk fonctionne :) Merci ! L'urgent est fait, l'impossible est en cours, Pour les miracles, prévoir un délai ... |
La série de commande est trop longue pour que je la copie
|
Ben tout ça :
python -V mv /usr/local/bin/python /usr/local/bin/python.save ls -l $(which python) python -Vet pour la 3e commande il m'a coupé le début parce que c'était trop long, puis même si je copiait ce que j'avais ça risquait d'être lourd sur la page :) et dès que j'ai refait : ls -l $(which python) python -Vc'était bon. L'urgent est fait, l'impossible est en cours, Pour les miracles, prévoir un délai ... |