LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2018, 05:39 AM   #1
Bill in Rose Hill
LQ Newbie
 
Registered: Jan 2018
Posts: 1

Rep: Reputation: Disabled
Remove Multiple versions of Python and keep the latest as default


I am using Ubuntu 16.04 on a Dell XPS 13, and an HP Envy. In the course of experimenting with Python, I have several versions installed. I would like to remove all the versions except 3.6, however, I am afraid of destroying my installation due to dependencies. I cannot find any specific instructions for this. I would appreciate some help, but more importantly, I would appreciate some advice on how to look up problems like this. I am a hobby programmer, and most of my work is mathematical functions and simple applications. Thank you.
 
Old 03-05-2018, 06:16 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 13,070

Rep: Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132Reputation: 4132
You need to keep a 2.7.x and a 3.6.x (or something similar). Why do you want to remove and which versions do you want to remove?
 
1 members found this post helpful.
Old 03-05-2018, 06:46 AM   #3
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,160
Blog Entries: 3

Rep: Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061Reputation: 2061
Also which method did you use to install the different versions. Some methods are easy to clean up after others are nearly impossible. If you used the package manager, then you're in good form.
 
Old 03-06-2018, 01:06 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 12,463
Blog Entries: 9

Rep: Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372Reputation: 3372
whatever installed packages you remove (with an apt package manager in your case), you have to look closely at all messages; if it wants to also remove half your desktop, you probably shouldn't do it.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Installing libraries for multiple python versions parth.s Linux - Server 4 10-09-2017 05:22 PM
Where to find new versions of Python after installing Python roll dyson ROCK 4 05-19-2016 10:06 AM
multiple python versions mahsan3 Linux - Software 16 12-09-2013 08:16 AM
How to remove multiple versions of Firefox on FC6? jonrpick Linux - Software 3 03-18-2007 08:58 PM
install latest versions of python, pygtk and glib kosmognov Linux - Software 2 05-12-2006 02:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:15 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration