[Tutor] PYTHON INSTALLATION PROBLEM

Bryan O'Brien bryan.m.obrien at gmail.com
Fri Oct 29 23:31:08 EDT 2021


Likely, you have multiple Python executables on your system.   
This will necessitate modifying your PATH.  

In terminal, run:

which -a python <enter>

If multiple python versions exist (this is normal with MacOS), just ensure that the python you want to use is listed first in your path. 

grep -i path ~/.zshrc

HTH

> On Oct 29, 2021, at 22:00, Richard Damon <Richard at damon-family.org> wrote:
> 
> On 10/29/21 8:08 PM, Cameron Simpson wrote:
>>> On 29Oct2021 19:51, Richard Damon <Richard at Damon-Family.org> wrote:
>>> On the Mac, 'Python Launcher' seems to just configure how python will
>>> run programs run under python. Generally from the Dock, you will want
>>> to click on the 'IDLE' icon, which launches the Python IDE, which gives
>>> and editor to write python programs or load a python script.
>>> The other way to run python is from the command line, using a command
>>> like python3 myprog.py
>> Also, Macs ship with Python. If your MacOS is current, the supplied
>> Python should be pretty modern.
>> Cheers,
>> Cameron Simpson <cs at cskk.id.au>
> 
> You might think that, but my Mac, running the latest version of OS-X, Monterey, reports for a "python --version"  that the system default python is still 2.7.10
> 
> Now, this system is a 2019 Year model, but was built as a upgrade to an older system. so that might be a reason.
> 
> Since I have been manually installing current Pythons, I don't know if they also have provided a python3 command with something more recent.
> 
> -- 
> Richard Damon
> 
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor


More information about the Tutor mailing list