I am trying to uninstall Python 2. I have attempted to do this both from my computer's Control Panel and from the Ubuntu command line using sudo apt remove python2
. Both of these actions appear to work, except that when I check in /usr/bin
, python2 is still there, and using my file explorer I see that python.exe still exists in WindowsApps. Similarly, when I run the python_version()
in Canopy it tells me it is still using Python 2.7.13. I am not sure what the issue is, and would appreciate any advice. For reference, I am using Windows, 64bit, Ubuntu 20.04.
Output of type python
:
python is hashed (/usr/bin/python)
Output of file /usr/bin/python
:
/usr/bin/python2: symbolic link to python2.7
Output of apt list --installed | grep python
libpython2-stdlib/focal,now 2.7.17-2ubuntu4 amd64 [installed,auto-removable] libpython2.7-minimal/focal,now 2.7.18~rc1-2 amd64 [installed,auto-removable] libpython2.7-stdlib/focal,now 2.7.18~rc1-2 amd64 [installed,auto-removable]