Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #94922

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

Date 2015-08-03 16:56 +0800
Subject Re: I'm a newbie and I'm still stumped...
From Dwight GoldWinde <Dwight@GoldWinde.com>
References <D1E0EED9.10BBA2%Dwight@GoldWinde.com> <mpis6l$b9f$1@ger.gmane.org> <mailman.1171.1438585158.3674.python-list@python.org> <ts8uradnhvig3rt9f3h3rs4prppqhflvo4@4ax.com> <D1E54D04.10C047%Dwight@GoldWinde.com>
Newsgroups comp.lang.python
Message-ID <mailman.1172.1438594259.3674.python-list@python.org> (permalink)

Show all headers | View raw



On 8/3/15, 4:55 PM, "Dwight GoldWinde" <Dwight@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@see.replyto.invalid> wrote:
>
>>Dwight GoldWinde <Dwight@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

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Re: I'm a newbie and I'm still stumped... Dwight GoldWinde <Dwight@GoldWinde.com> - 2015-08-03 14:57 +0800
  Re: I'm a newbie and I'm still stumped... Paul Rubin <no.email@nospam.invalid> - 2015-08-03 00:14 -0700
    FW: I'm a newbie and I'm still stumped... Dwight Hotmail <GoldWinde@hotmail.com> - 2015-08-03 16:19 +0800
  Re: I'm a newbie and I'm still stumped... Dave Farrance <df@see.replyto.invalid> - 2015-08-03 09:27 +0100
    Re: I'm a newbie and I'm still stumped... Dwight GoldWinde <Dwight@GoldWinde.com> - 2015-08-03 16:56 +0800
      Re: I'm a newbie and I'm still stumped... Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2015-08-03 12:49 +0300

csiph-web