How to update python 3.5.2 to 3.6.2

I have python 3.5.2, and 3.6.7 installed but i need python 3.6.2 only how can i remove other versions and only get 3.6.2 on the machine

2

1 Answer

Try this

sudo apt purge python2.x
sudo apt purge python3.x

As there are still a lot of packages that depend on Python2.x So you should have a close look at the packages that apt wants to remove before you let it proceed.

after that you can install your required version by

$ sudo apt update
$ sudo apt install python3.6.2

then you can check by

ls -l /usr/bin/python*

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like