python virtualenv idle and tkinter issue
One simple solution is to copy the tcl folder from your original python installation to the virtual environment. For example, on my machine I did the following:
C:\> virtualenv t:\env\myenvC:\> xcopy c:\python27\tcl t:\env\myenv\tcl /e /i /k
I'm currently using IDLE in a few Virtual Environments but my script to start it up looks like below. This works for me whether I created my environment using --no-site-packages option or not. For some reason I had to put the full path to my virtual python in the header of the script.
#!/home/steve/virt_idle/bin/pythonfrom idlelib.PyShell import mainif __name__ == '__main__': main()