Reputation: 1291
I am using Window Subsystem Linux 2
with Ubuntu 20.04 LTS
. I am using it for a while and decided to check the python
version installed in my machine.
I ran following command :
python3 -V
it displays
Python 3.8.10
after that I decided to upgrade my python version but before that I ran
whereis python
and this command displaying me 6 locations of python
Locations
/usr/bin/python3.8
/usr/lib/python3.8
/usr/lib/python3.9
/usr/lib/python2.7
/etc/python3.8
/usr/local/lib/python3.8
My question is, is it normal to have this much python's installed in your machine. And Secondly I want to make python3.9
as my default python3
currently I have 3.8
version.
Upvotes: 0
Views: 463
Reputation: 11
It's normal to have these many locations. whereis command allows to - locate the binary, source, and manual page files for a command. although the lastest version of python is 3.x but few tools still work on python 2.x.
In my server -
python:
Upvotes: 1