This kind of versioning issues is really common. Run the above command before you change the rename python3 to python. If you want to remove it, which I strongly advise that you do not do because it could break a few things, then run the following command sudo apt purge python If you want to change the command for python2, then simply follow the above procedure. Example on my machine($ is the prompt and > means the output on terminal) - $ which python3 To do this, cd into the directory and change the name with the mv command with sudo. This will tell you the location of the python3 file and then you can simply rename it to python. To find where this script or file is stored, enter the command - which python3 To make it run with the command 'python', you have to simply rename the script with the name 'python3' to 'python'. So, the command 'python3' really refers to a script with the name 'python3' in your computer. Backup your files before you do anythingĬommands in Linux are really just scripts that are executed when you enter them. These programs may not run on python3 and this could break your system. You can make the command 'python' refer to python3 and change the command for python2 or remove python2 altogether.ĭo this with caution, a lot of your programs may be using python and may mean python2 when they use the command 'python'. You can change that however if you want to. So, the reason you have two python versions installed is that both are still used.
can someone please explain me what is happening and please let me know how i can get this to work with 'python' and 'pip' again if possible.
I dont know how to fix this or maybe i was supposed to just ignore the warning. Then it started giving me this error everytime i try to use pip. I tried using the command pip3 install -upgrade pip > You should consider upgrading via the 'pip install -upgrade pip' command. > You are using pip version 8.1.1, however version 19.3 is available.
pip in this refers to the 2.7 similarly and pip3 to 3.X but even if i use these commands with 3 the error to update pip confuses me. Pretty sure earlier command 'python' used the version 3.6 but now it seems like 'python' uses 2.7 and need to use 'python3' to access the python 3.7. earlier before formatting this server i was using the commands 'python' and 'pip' when working with python. i am linked the this server though a SFTP. I am kind of new to Linux and i have to work with a Linux computer that has just been formatted.