I'm a newbie and I'm still stumped...

Dwight GoldWinde Dwight at GoldWinde.com
Mon Aug 3 04:56:49 EDT 2015



On 8/3/15, 4:55 PM, "Dwight GoldWinde" <Dwight at GoldWinde.com> wrote:

>Okay, thank you, Dave, so I got the following info:
>type $(which python3)
>/Library/Frameworks/Python.framework/Versions/3.4/bin/python3 is
>/Library/Frameworks/Python.framework/Versions/3.4/bin/python3
>
>
>But I can¹t figure out what short of ³usr² statement (e.g. #!/usr/bin/env
>python3) I need to point it there. Whatever I tried, still gives me
>version 2.
>
>???
>
>Dwight
>
>On 8/3/15, 4:27 PM, "Dave Farrance" <df at see.replyto.invalid> wrote:
>
>>Dwight GoldWinde <Dwight at GoldWinde.com> wrote:
>>
>>>Here are the results I got below, showing the same error. The first line
>>>says, 
>>>"2.7.6 (default, Sep 9 2014, 15:04:36)². Does that mean I am running the
>>>old Python? How could that be since I am SURE I downloaded 3.4.3 (it
>>>even
>>>gives the folder name as ³Python 3.4² in the Applications folder on my
>>>Mac.
>>
>>Yes, that's Python2.  I've never used MAC OS, but I understand that it
>>has the BASH shell, so you can use "which" try to figure out where
>>python is being found on the path:
>>
>>$ echo $PATH
>>
>>$ which python
>>
>>Use the above to also check for the position of python2 and python3.
>>
>>You can check for aliases and links with the "type" and "file" commands.
>>Do this for python, python2 and python3:
>>
>>$ type $(which python)
>>
>>$ file $(which python)
>>-- 
>>https://mail.python.org/mailman/listinfo/python-list





More information about the Python-list mailing list