Macos 11 Or Later Required! Error On Pycharm
Solution 1:
If you used Homebrew to do your Python installation, there have been some reported issues with Python3 installs via brew (Source 1, Source 2). Updates are always in the works though, so you could try remedying your problem first with a brew update. If the issue persists, the current recommendation is to actually install Python directly from their site (Similar issue with fix reported).
In conclusion, if using brew, try a brew update first, if that doesn't fix your issue, install Python directly!
brew update&& brew upgrade
Solution 2:
I tried to do a simple brew update && brew upgrade
, but that did not help much.
When doing my research, it appears Apple supplies an old version of tcl-tk (8.5.xx) which causes the issue. Just installing a newer tcl-tk using brew solved the issue:
brew install tcl-tk
This should install tcl-tk 8.6.xx (it's 8.6.11 at the time of writing).
The simplest verification is:
% python3
Python 3.9.1 (default, Jan 82021, 17:17:43)
[Clang 12.0.0 (clang-1200.0.32.28)] on darwin
Type"help", "copyright", "credits"or"license"for more information.
>>> import tkinter as t
>>> t._test()
A test small GUI window should come up.
Solution 3:
After having tried the above and still not getting my project to work, I've created a new project and set the base interpreter to
/usr/local/bin/python3
instead of leaving the preset one which was /usr/bin/python3
Worked like a (Py)Charm (Sorry for that. I'll show myself out)
Solution 4:
Tried all solutions without any result. After all I changed environment from VirtualEnv
to Conda and set it in new PyCharm project.
Now it works well.
Post a Comment for "Macos 11 Or Later Required! Error On Pycharm"