Quantcast
Channel: Active questions tagged windows-subsystem-for-linux - Ask Ubuntu
Viewing all articles
Browse latest Browse all 2811

Uninstalled python2, but still appears in /usr/bin and in file explorer

$
0
0

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]

Viewing all articles
Browse latest Browse all 2811

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>