how make python37 the binary called by "python"
Murray Eisenberg
murrayeisenberg at gmail.com
Mon Oct 29 20:35:58 UTC 2018
That worked, thanks!
Would “source ~/.profile” also have accomplished the same end?
> On 29 Oct2018, at 4:26 PM, Rainer Müller <raimue at macports.org> wrote:
>
> On 2018-10-29 21:05, Murray Eisenberg wrote:
>> After
>>
>> sudo port select --set python python37
>> Selecting 'python37' for 'python' succeeded. 'python37' is now active.
>> I have:
>>
>> port select --list python
>> Available versions for python:
>> none
>> python27
>> python27-apple
>> python37 (active)
>>
>> Nonetheless:
>>
>> which python
>> /opt/local/bin/python
>> python --version
>> Python 2.7.3
>>
>> And how do I get the version invoked by “python” at command line to be 3.7?
>
> Your shell cached "python" to mean "/usr/bin/python". It is not
> evaluating the full PATH on every command invocation as it would be
> quite slow to walk the filesystem every time.
>
> This cache will not be updated unless you tell your shell to do so.
> Either run 'hash -r' or close and reopen your terminal window.
>
> Rainer
---
Murray Eisenberg murrayeisenberg at gmail.com
503 King Farm Blvd #101 Home (240)-246-7240
Rockville, MD 20850-6667 Mobile (413)-427-5334
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-users/attachments/20181029/7d332bc6/attachment.html>
More information about the macports-users
mailing list