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-1126.96.36.199)] 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
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
pandas in the package are for
which contains my persoanl virtualenv
What you need to do is locate the
python3 which IDLE is using, and
pandas for that executable.
@tjreedy, do you know how to ask IDLE which
python3 it is using?
Happy to help debug this process.
Cameron Simpson email@example.com