After Big Sur upgrade from Catalina: “'python2.7' cannot be opened because the developer cannot be verified."

I thought python 2.7 was a part of the macOS?

I'm also getting "python2.7 was blocked from use because it is not from an identified developer" in the Preferences > Security & Privacy > General section. If I click to allow, the same popup usually appears some time afterwards and the blocked notification is back in Security & Privacy settings.

I don't recall making any python changes to this Mac, but I may have as I have set up Jupyter on previous macs, but don't see it on this one... unless the upgrade process removed it or other components but missed whatever is triggering the python 2.7 warning??

Posted on Dec 12, 2020 11:25 AM

Reply

Similar questions

4 replies

Dec 12, 2020 1:52 PM in response to VikingOSX

Thanks for the info VikingOSX. I'll do that when using python.

On closer inspection of this randomly appearing popup warning, I see it finishes up with: "...Google Chrome downloaded this file on July 13, 2017" (this time anyway). Since I didn't have this Mac in 2017 I'm guessing, in this most recent warning, the issue is caused by an unsupported Chrome extension that has synced. In this instance I was able to choose to 'move to trash'. Other times the popup appeared when I clicked 'move to trash' i am told it couldn't delete it and I'd have to do so manually. So the one I didn't manually delete yet is the issue for the persistent random popup... the popup is a bit confusing in that it suggests manually deleting the file but it displays the file as being "python2.7"... which I don't believe I should delete as it is still there to support old apps (apparently not all of them). So I suppose I'll just have to hunt down the application that is causing the issue since the warning simply lists python2.7 as not being a trusted developer. But yes, I'll def use python3 for any future scripting. Thanks

Dec 12, 2020 1:08 PM in response to kpm800

Python 2.7.16 (aka python) is still in /usr/bin, and runs any random python script I have here, that does not explicitly require Python3, or where the import item has changed its name.


At the top of your python script, use one of the following, but do not refererence python2.7 there:


#!/usr/bin/python
#!/usr/bin/env python
#!/usr/bin/env python3


Your PATH statement ordering will play a role in which Python you invoke.

Dec 12, 2020 1:58 PM in response to kpm800

I don't know what language the Chrome development kit requires for Chrome extensions, but if it were Python, the individual Chrome extension may have an outmoded and complete Python 2.7 installation within the extension. The code in the extension could be (incorrectly) explicitly referencing its own internal Python 2.7 interpreter.


I simply have none of these error dialogs as I don't use Chrome… Does updating Chrome to current version help at all?

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.

After Big Sur upgrade from Catalina: “'python2.7' cannot be opened because the developer cannot be verified."

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