Connecting Terminal to Python 3.5

Matt Wheeler m at funkyhat.org
Sat Aug 29 12:25:11 CEST 2015


That post has some really bad advice.

You should not try to change the system python on osx. It's probably not as
critical as doing the same on Linux, but there is a high chance some
applications will stop working if they try to run python and expect it to
be 2.7.

The standard advice is that the python 3 command should always be called
python3 because of the backwards incompatibility and to allow 2 and 3 to
coexist easily.

I would suggest just installing python 3 using the dmg or using homebrew,
but you'll also want to restore the system python somehow... according to
http://apple.stackexchange.com/questions/38512/deleted-library-python-folder-is-it-possible-restore
your
best bet is to try to find another mac with the same version of OSX and
copy the relevant files back from there.


Sorry to be the bearer of potentially bad news...
On Sat, 29 Aug 2015 00:52 Sam Miller <qaz_468 at hotmail.com> wrote:

> Hello All,
>
> I tried to update Python in terminal on my Mac book pro to v3.5 using this
> website:
>
>  https://wolfpaulus.com/journal/mac/installing_python_osx/
>
> Sadly I must have made a large mistake since after completing these steps
> python IDLE and python within terminal failed to open or run.
>
> I reinstalled python v3.5 again and now IDLE works. On the other hand,
> when I try to open python inside of terminal I get this error message:
> "-bash: python: command not found".
>
> I am not sure what to do to correct this error. Could anyone send me the
> correct code to link my terminal to python 3.5 so I can run python v3.5
> within terminal?
>
> Thanks,
> Sam
> --
> https://mail.python.org/mailman/listinfo/python-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20150829/3a960174/attachment.html>


More information about the Python-list mailing list