Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

On wheezy apt packaging python3-tk requires python3.2 & python3 packages. I want python 3.4 and have built it manually. The trouble is I don't know how to get my manual 3.4 build to 'see' the python3-tk install - when trying to import tkinter I get:

Traceback (most recent call last):
  File "/myscript.py", line 9, in <module>
    import tkinter as tk
  File "/opt/python3/lib/python3.4/tkinter/__init__.py", line 38, in <module>
    import _tkinter # If this fails your Python may not be configured for Tk
ImportError: No module named '_tkinter'

if I start the system python3 interpreter and import tkinter it will load the module. I have my 3.4 manual build installed to a dir in /opt/. How do I get it to see the apt-installed tkinter?

share|improve this question
    
By manual I assume you mean a local intallation frm source. I recommend backporting python 3.4 from testing/unstable. This will (probably) solve all your problems, if you are willing to learn something new. See unix.stackexchange.com/q/112157 for further information. This question is also listed in the backports tag. If you have further questions or need assistance, ask. –  Faheem Mitha Sep 10 at 21:10
    
I assume it's better to take from testing rather than unstable? –  user1561108 Sep 11 at 9:05
    
No, there is no difference. I generally use the most recent version, which is in unstable by definition. Sometimes testing and unstable have the same version, of course. –  Faheem Mitha Sep 11 at 9:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.