I upgraded and installed latest Python version 3.8.1.
Problem is, when I type
python --version
on terminal I get Python 2.7.16, when I type
python3 --version
I get Python 3.8.1. But if I try to
pip install -U selenium
I get a message:
"DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/development/release-process/#python-2-support"
I dont understand why is it running on Python 2.7
Never call the pip, pip3, or pipX.Y scripts directly unless you really understand what the implications are.
Instead always prefer calling the exact Python interpreter you are targeting and tell it to run pip's executable module:
path/to/my/pythonX.Y -m pippath/to/my/python -m pippath/to/venv/bin/python -m pippythonX.Y -m pippython3 -m pippython -m pipI recommend reading Brett Cannon's article "Why you should use python -m pip".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With