Upgraded to Python 3.10.7 - iPython no longer importing modules - MacOs Monterey

Viewed 40

I just upgraded my Python install from 3.10 (brew) to 3.10.7 (Python.org - downloaded a .dmg and installed).

Since then, I can no longer import packages. I can import them when running the standard python interactive interpreter. Even when I try installing a package from within the ipython session (using a !), I am unable to load it into the session.

It seems that python3 is the 'old' version, while ipython is the new one, while pip is somewhere in the middle...

➜  ~ which python3
/opt/homebrew/bin/python3

➜  ~ which ipython3
/Library/Frameworks/Python.framework/Versions/3.10/bin/ipython3

➜  ~ pip3 -V
pip 22.2.2 from /opt/homebrew/lib/python3.10/site-packages/pip (python 3.10)

➜  ~ pip -V
pip 22.2.2 from /opt/homebrew/lib/python3.10/site-packages/pip (python 3.10)

I've clearly broken something with my reckless installing... I've tried uninstalling ipython and re-installing it again, but pip thinks there is no ipython installed (which is weird, because it's always been my go-to, even with older versions).

Can anyone help me get to a point where at least I can use ipython (regardless of the version) with the pip packages I have installed? Thanks in advance.

0 Answers
Related