I have installed python3 on my raspberry 4, and i guess there is a native python2 as well. I must use a library that needs python3.6+, and it checks the version of pip (not pip3!) and if it finds out that it points to python2, it throws an exception. My pip command is stuck pointing to python2.7 and I would like it to point to python3 instead. I've tried many things from other answers:
python -m pip install --upgrade --force-reinstall pip
and
pip3 install --upgrade --force pip
then
python3 -m pip install --upgrade --force pip
None of the above changed the behaviour, and I still get this when i run pip -V
:
Warning: pip is being invoked by an old script wraper...[...]
pip 20.02 from /home/pi/.local/lib/python2.7/site-packages/pip (python 2.7)
What can I do? Thanks
pythonX.Y -m pip
form. -- snarky.ca/why-you-should-use-python-m-pip – sinoroc