Upgrading Python3 package is always a big pain for me. Every time I upgrade from one version, e.g. 3.7.0, to another, e.g. 3.7.1, my python script loses access to my
/usr/local/lib/python3.7/site-packages/ folder. I have to revert back to the previous version, i.e. 3.7.0, to allow my script have access to this folder again.
My question is simple. How to upgrade Python3 while maintaining access to the above lib folder. Should I create a
/usr/local/lib/python3.7.1/ folder? I doubt since we are still under the numbering
3.7 for Python.
There has to be a mean to upgrade Python subversions without breaking access to the lib.
Here's the kind of error I receive:
Traceback (most recent call last): File "./script.py", line 20, in <module> import urllib3 ModuleNotFoundError: No module named 'urllib3'
But I have
/usr/local/lib/python3.7/site-packages/ So why reverting back to previous 3.7.0 would reenable lib access?