Python tkinter.Tk()错误,导致我的MacBook Pro死机并注销
当我运行root=tkinter.Tk()时 或者只是我Mac上的Tkinter.Tk(),它会杀死所有东西并让我注销 我尝试重新安装整个操作系统,然后安装了python和brew,但问题仍然存在 我使用的是python3,但python2也存在同样的问题 我目前正在运行MacOS:10.14.6Python tkinter.Tk()错误,导致我的MacBook Pro死机并注销,python,tkinter,Python,Tkinter,当我运行root=tkinter.Tk()时 或者只是我Mac上的Tkinter.Tk(),它会杀死所有东西并让我注销 我尝试重新安装整个操作系统,然后安装了python和brew,但问题仍然存在 我使用的是python3,但python2也存在同样的问题 我目前正在运行MacOS:10.14.6 The error: >>> import tkinter >>> tkinter.Tk() <tkinter.Tk object .> &g
The error:
>>> import tkinter
>>> tkinter.Tk()
<tkinter.Tk object .>
>>> 2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.988 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.989 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
2019-08-07 08:49:48.989 python[917:21078] CGSTrackingRegionSetIsEnabled returned CG error 268435459
错误:
>>>进口tkinter
>>>tkinter.Tk()
>>>2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.988 python[917:21078]cgstrackingregionSetiseEnabled返回CG错误268435459
2019-08-07 08:49:48.989 python[917:21078]CGSTrackingRegionSetIsEnabled返回CG错误268435459
2019-08-07 08:49:48.989 python[917:21078]CGSTrackingRegionSetIsEnabled返回CG错误268435459
这是MacOS 10.14.6中的一个错误
请参阅使用virtualenv运行代码解决了我的问题