How to allow Python.app to firewall on Mac OS X?
<p>When I run a python application on Mac, it shows many dialogs about want "Python.app" to accept incoming network connections.</p>

<p>Even I Allow it many times, it shows again and again.</p>

<p>How to allow it one time and not show any more?</p>

<p><a href="https://i.stack.imgur.com/AOWy3.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AOWy3.png" alt="enter image description here"></a></p>

<hr>

<h1>Edit</h1>

<p>I found this question:
<a href="https://stackoverflow.com/questions/19688841/add-python-to-os-x-firewall-options">Add Python to OS X Firewall Options?</a></p>

<p>I followed the accepted answer to do but finally when I run <code>codesign -s "My Signing Identity" -f $(which python)</code>, it said:</p>

<pre><code>/usr/bin/python: replacing existing signature
error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/codesign_allocate: can't create output file: /usr/bin/python.cstemp (Operation not permitted)
/usr/bin/python: the codesign_allocate helper tool cannot be found or used
</code></pre>

<p>How to do next?</p>