Forums

How to uninstall python 2.7?

Hi. I'm trying to make a django blog, I'm using python 3.8 on my project, and when I started the bash here, I've accidentally installed python 2.7. I wish to remove it, is there a way to do it? I've been trying some commands with no sucess. Is there any way to "reset" my server, so I can install only the 3.8 version? Thanks!

Python 2.7 is always going to be installed in your account PythonAnywhere, because the operating system that your code is running in uses it for its own internal stuff. In fact, you currently have 2.6, 2.7, 3.5, 3.6, 3.7 and 3.8 available.

To specify which one you want to run, you just add the version number to the end of the command you use to run it -- for example, you can run Python 3.8 from a Bash console by using the python3.8 command.