idle is not opening

I've read all the article about this problem on the forum but none seems to have had this such problem.

i have been using idle for 1 month and everything was ok. Then, yesterday, all of a sudden it stopped running. Whenever I try to open a .py file with idle it appears a banner saying:

I tried to update my Mac version to Big Sur but it still not opening. i also tried to go to system preferences, security and privacy, and the python box is already ticked

I hope you'll understand what's the issue, thanks.

MacBook Pro 15″, macOS 11.2

Posted on Feb 17, 2021 2:06 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 17, 2021 1:06 PM

You will need the following PATH in your Zsh startup file (~/.zshrc) so that all of the Python 3.9 binaries can be found when you attempt to run them:


export PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:.:/usr/local/bin:${PATH}"



The Python.org installer does not do this for you, except in the Bash ~/.bash_profile dot file. Then either quit the Terminal or issue the following command in it to set the PATH update:


source ~/.zshrc



16 replies
Question marked as Top-ranking reply

Feb 17, 2021 1:06 PM in response to samuele52

You will need the following PATH in your Zsh startup file (~/.zshrc) so that all of the Python 3.9 binaries can be found when you attempt to run them:


export PATH="/Library/Frameworks/Python.framework/Versions/3.9/bin:.:/usr/local/bin:${PATH}"



The Python.org installer does not do this for you, except in the Bash ~/.bash_profile dot file. Then either quit the Terminal or issue the following command in it to set the PATH update:


source ~/.zshrc



Feb 17, 2021 3:11 PM in response to samuele52

By default, you will not have a /Users/username/.zshrc file in your home directory. Using a plain text editor (e.g. BBEdit), create a new .zshrc file, and copy/paste that PATH statement into it, and save it. Every time that you launch the Terminal, Zsh will read that file and set your PATH so you can use Python and Idle without further PATH-related issues.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

idle is not opening

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.