Reputation: 9
I was working on my hw for tkinter. Then it stopped poping up the game it normally does when I hit run. I then decided to restart my computer thinking it would correct itself, but in the end now my apple computer wont even let me open up any python files. It just slowly opens them then closes immediately and gives me the error in the picture. Is there something I can do to fix this? Thanks!
Upvotes: 0
Views: 464
Reputation: 41
I'm wondering if it is because of Apple. If I'm correct the Mac's come with Python 2.7 installed. You downloaded Python 3.8, and now those two versions of Python might be interfering with one another. Here is a link to using a virtual environment you can install it, and Python 3 in it so it doesn't mix with Python 2 (https://www.thecrazyprogrammer.com/2018/11/working-with-virtual-environment-for-django-project.html). You can ignore the Django commands if you don't want to download Django. I haven't used Mac in awhile so I don't if there is a way you can control PATH variables on Mac's like I can with Windows. You could also download VSCode(free), Atom(free), Sublime(free, but will ask for donation) or any other code editor, and that'll fix your problem too.
Upvotes: 1