In MacOS Monterey (12.0.1), I am running Python 2.7 from an Anaconda virtual environment. Each time I run the Python script, I am asked if I want to accept incoming network connections:
I have tried multiple times to "Deny" or "Allow" this (which requires me to enter the username & password of an administrator user). However, each time I run the script I am presented with the same question.
When I go to System Preferences > Security & Privacy > Firewall > Firewall Options and press + to add an application manually, I am unable to select Python 2.7 in the file picker (it's grayed out, as can be seen in the screenshot below):
According to Get Info, my user has Read & Write privileges for this file, which also seems to be true in Terminal for the file and the directory it's in:
-rwxrwxr-x@ 1 my_user staff 8464 Oct 30 12:21 python2.7 drwxr-xr-x@ 81 my_user staff 2592 Nov 19 10:10 bin
How can I stop this annoying pop-up from reappearing?