I have a Raspberry Pi 3 with Raspbian and I upgraded python version from 3.7 to 3.8. If I type python --version in the terminal the correct version appears as the system version. However none of the modules that I have installed AFTER the version change seem to work. Python gives ModuleNotFoundError when trying to import ANY of the modules that I have installed.
I can see the modules with pip freeze but Python seems to not be able to find them.
I followed this instructions to purge 3.7. I reinstalled pip after purging python 3.7 but pip as again installed in /home/pi/.local/lib/python3.7/site-packages/pip. How can I get rid of 3.7 completely?
pip -Vandpython -m pip -V/home/pi/.local/lib/python3.7/site-packages/pippip3.8 install packageNameand notpip install packageName. or consider uninstalling the previous python version if you are not using itwhereison linux to find any offenders, I'd start withwhereis pip3.7andwhereis python3.7and for sanity generalize it after those are addressed withwhereis pipetc.pipis normal Python script and you can open it in editor and change first line withshebang(#!) to usepython3.8instead ofpython3.7- like#!/usr/bin/python3.8. But sometimespipcan be only link topip3.7and you can removepipand create newpipas link topip3.8