Do not throw away homebrew. It has its problems, but is very useful.
Many many MacOS users install homebrew.
The Python 3 which comes with MacOS may be a bit dated, which is how
things often are with distros. At the least, they often stay pinned with
the OS release. For example, this Mac is running MacOS Catalina (a bit
old) and the system supplied Python 3 is:
Python 3.8.2 (default, Dec 21 2020, 15:06:04)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
@thibault, please run this command at the shell prompt: which -a python3
That should show all the Python executables in your current search
$PATH
. For example here I get:
[~]fleet2*> which -a python3
/Users/cameron/bin-cs/python3
/Users/cameron/var/venv/3/bin/python3
/Users/cameron/bin-local/bin-anaconda3/python3
/Users/cameron/bin-local/bin-python-3.10/python3
/Users/cameron/bin-local/bin-usr-local/python3
/Users/cameron/bin-local/bin-venv/python3
/Users/cameron/var/homebrew/bin/python3
/usr/local/bin/python3
/usr/bin/python3
My environment is a bit elaborate. What’s important above is:
-
/Users/cameron/var/homebrew/bin/python3
which comes from homebrew
-
/usr/bin/python3
which comes from the OS
Each of these has its own package install area.
Because of this, the recommended way to use pip
is via the executable
of interest. An example might be:
/Users/cameron/var/venv/3/bin/python3 -m pip install pandas
which installs pandas
in the package are for ~/venv/3/bin/python3
which contains my persoanl virtualenv python3
.
What you need to do is locate the python3
which IDLE is using, and
install pandas
for that executable.
@tjreedy, do you know how to ask IDLE which python3
it is using?
Happy to help debug this process.
Cheers,
Cameron Simpson cs@cskk.id.au