4

This has been asked already but no answer has been supplied for computers running Mac OSX. How can I enable tkinter in a python 2.7 virtualenv on mac?

TKinter in a Virtualenv

adamcircle
  • 694
  • 1
  • 10
  • 26
  • Have you followed the setup guide here --> [Virtualenv](http://sourabhbajaj.com/mac-setup/Python/virtualenv.html) – Mike - SMT Jun 30 '17 at 21:24
  • 3
    Does this help: http://blog.openpolis.it/2014/06/15/using-tkinter-inside-a-virtualenv-hack/4287 ? – phd Jun 30 '17 at 22:00

1 Answers1

1

I just ran into the same problem - and found a simple solution. Just create your environment using

virtualenv --system-site-packages YourNewEnv

to make an existing tkinter install (for example from brew or macports) available to your virtual environment.

Mark Asbach
  • 61
  • 1
  • 9