TKinter in a Virtualenv

前端 未结 9 1732
北荒
北荒 2020-12-05 00:27

Trying to run python code with TKinter-based widgets from a virtualenv.

    user@computer:~/myproject$ env/bin/python Python
    2.7.3 (default, Sep 26 2012,         


        
9条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-05 00:53

    For me the solution was copying the folder tcl from

    C:\Users\{myUser}\Python3.5\tcl
    

    to

    C:\Users\{myUser}\{myVirtualEnv}
    

    replace {myUser} and {myVirtualEnv} with your specific directory names.

提交回复
热议问题