That worked, thanks! Would “source ~/.profile” also have accomplished the same end?
> On 29 Oct2018, at 4:26 PM, Rainer Müller <[email protected]> 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 [email protected] 503 King Farm Blvd #101 Home (240)-246-7240 Rockville, MD 20850-6667 Mobile (413)-427-5334
