I'm operating on a Raspberry Pi through PuTTY, and I need it to use Python 3 instead of 2. I've already done alias python = python3, but that does not seem to change the default, only the keyword itself used. I want to change to 3 because for example, when I try to 'pip install selenium', I get the following prompt:
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. pip 21.0 will drop s
upport for Python 2.7 in January 2021. More details about Python 2 support in pi
p can be found at https://pip.pypa.io/en/latest/development/release-process/#pyt
hon-2-support
And it won't even let me pip install selenium. After trying for a minute or two, it prompts me this:
ERROR: Could not find a version that satisfies the requirement selenium (from versions: none) ERROR: No matching distribution found for selenium
My Linux machine has both Python 2 and 3 installed.
EDIT: Thank you for your contributions, I understand what you're saying. Now I have a new problem though - I broke sudo apt-get update by following someone else's suggestion. I have a post here: Raspberry Pi sudo apt-get update doesnt work