Apple Event: May 7th at 7 am PT

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Python 3.5.1 not working on macOS Sierra

I recently updated my MacBook Pro to macOS Sierra. I was coding on Python before and all was working fine, I have tested it on other computers and it works fine its just on mine that it does not work. I think it might be something to do with the new update system - I don't have a version of python compatible with macOS Sierra. I have googled for a version but nothing. If anyone could point me in the right direction that would be amazing.

Thanks so much

MacBook Pro with Retina display, macOS Sierra (10.12.1), null

Posted on Nov 8, 2016 11:17 AM

Reply
Question marked as Best reply

Posted on Nov 8, 2016 2:25 PM

If you downloaded, and installed the Python 3.5.2 binary package from Python.org, it will not step on the System Python 2.7.10 installed by OS X/macOS. The last thing that you want to do is attempt replacement, or a mixture of Python 3.5.2 bits into the System Python installation locations. Several parts of the operating system, and some third-party applications depend on the installed System Python for correct functionality.


If you “stepped” on the System Python, then you are advised to reinstall macOS Sierra.


If you downloaded and installed Python 3.5.2 from a package manager, then you must know how to manipulate the $PYTHONPATH environment variable to point to the 3.5.2 library location, or unset this environment variable to default back to the System Python 2.7.10.


Apple has not updated its Tcl/Tk frameworks in years, and if you run the Python idle environment, it will complain about these frameworks as outdated. The free ActiveState Tcl/Tk 8.6.4 frameworks break idle on macOS Sierra.

1 reply
Question marked as Best reply

Nov 8, 2016 2:25 PM in response to Appl3Girl

If you downloaded, and installed the Python 3.5.2 binary package from Python.org, it will not step on the System Python 2.7.10 installed by OS X/macOS. The last thing that you want to do is attempt replacement, or a mixture of Python 3.5.2 bits into the System Python installation locations. Several parts of the operating system, and some third-party applications depend on the installed System Python for correct functionality.


If you “stepped” on the System Python, then you are advised to reinstall macOS Sierra.


If you downloaded and installed Python 3.5.2 from a package manager, then you must know how to manipulate the $PYTHONPATH environment variable to point to the 3.5.2 library location, or unset this environment variable to default back to the System Python 2.7.10.


Apple has not updated its Tcl/Tk frameworks in years, and if you run the Python idle environment, it will complain about these frameworks as outdated. The free ActiveState Tcl/Tk 8.6.4 frameworks break idle on macOS Sierra.

Python 3.5.1 not working on macOS Sierra

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