Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[PYTHON] Installer Python/tk (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
Paulbro
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2003
Posts: 124

PostPosted: Tue Aug 26, 2003 10:02 am    Post subject: [PYTHON] Installer Python/tk (résolu) Reply with quote

Je voudrais installer Python sur ma gentoo.

J'ai fait un emerge python qui s'est bien passé. La ligne de commande interactif fonctionne, donc de ce côté là c'est bon.

Mais l'intégration de Tkinter ne fonctionne pas. Un exemple :

bash-2.05b$ python
Python 2.2.3 (#1, Aug 25 2003, 10:37:08)
[GCC 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice)] 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/lib/python2.2/lib-tk/Tkinter.py", line 35, in ?
import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named _tkinter
>>>

Oui, oui, vous avez bien compris... je suis autant débutant en python, qu'en Linux.

Merci d'avance.

:D


Last edited by Paulbro on Wed Aug 27, 2003 6:29 pm; edited 1 time in total
Back to top
View user's profile Send private message
sebo
Tux's lil' helper
Tux's lil' helper


Joined: 26 Jun 2003
Posts: 114
Location: Aix en Provence, FRANCE

PostPosted: Tue Aug 26, 2003 3:37 pm    Post subject: Reply with quote

Salut,

Je ne n'ai pas de solution "clé en main" mais une recherche sous google donne déjà des résultats à éplucher...
Par ex:
http://www.google.fr/search?sourceid=navclient&hl=fr&querytime=nuD93B&q=import+%5Ftkinter+

Bonne chasse :wink:
_________________
Sébastien
Back to top
View user's profile Send private message
Paulbro
Tux's lil' helper
Tux's lil' helper


Joined: 26 Aug 2003
Posts: 124

PostPosted: Wed Aug 27, 2003 6:33 pm    Post subject: Reply with quote

C'est résolu.

Il suffit d'installer tk avant Python.

Mais surtout faite pas comme moi sinon :
https://forums.gentoo.org/viewtopic.php?t=78241[/url]

:P
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum