My friend sent me a code he wrote with a .py extension. I tried to open it with IDLE, it gives the error
[Errno 1] Operation not permitted
I am using Python 3.7.2 on MacOS Mojave 10.14.3
I checked the other answers, and I don't think brew install python
will solve this problem.. There is no problem when I run python from terminal, or when I run it from Anaconda Navigator.
How can I solve this problem?
Edit: This is not a duplicate because I want to open the script with IDLE. I can open it from the terminal as I said.