Remove old versions of Python and pip












1















I recently updated from Ubuntu 16.04 to 18.04.
I had separate partitions for / and home, and for the update I made a clean install over the / folder, so that I saved everything in the home folder, while the rest was formatted.
After the update, I only had python 3.6.7, which as I understand is the default version for the operative system. Then, I installed python 2.7 (version 2.7.15rc1, specifically), so I was expecting to have only these two versions installed.



1) Am I correct in saying that the 3.6.7 is the default version for Ubuntu 18.04? So, no matter what, this version is needed from the system, and should not be uninstalled?



2) As I said, I was expecting to have only python 3.6.7 and 2.7.15rc1 installed. However, after a search, I found these files:



/snap/core/6130/usr/bin/python3.5: Python 3.5.2
/snap/core/6130/usr/bin/python3.5m: Python 3.5.2
/snap/core/6259/usr/bin/python3.5: Python 3.5.2
/snap/core/6259/usr/bin/python3.5m: Python 3.5.2
/snap/core/6350/usr/bin/python3.5: Python 3.5.2
/snap/core/6350/usr/bin/python3.5m: Python 3.5.2


are they relics from before the update? Are they system files? Can they be removed, and how?
I don't understand what these folders contain, since as I said I formatted the / partition.
If I give the command:



snap list


I get:



Name                  Version                 Rev   Tracking  Publisher   Notes
core 16-2.37.1 6350 stable canonical✓ core
gnome-3-26-1604 3.26.0 74 stable/… canonical✓ -
gnome-calculator 3.30.1 260 stable/… canonical✓ -
gnome-characters 3.30.0 139 stable/… canonical✓ -
gnome-logs 3.30.0 45 stable/… canonical✓ -
gnome-system-monitor 3.30.0 57 stable/… canonical✓ -
gtk-common-themes 0.1-4-g88bc1b2 818 stable/… canonical✓ -
skype 8.34.0.78 66 stable skype✓ classic
spotify 1.0.98.78.gb45d2a6b-10 31 stable spotify✓ -
vlc 3.0.6 770 stable videolan✓ -


which are the programs I installed from the software center after the update to 18.04.



3) If I use the command:



whereis pip


I get the output



/home/carlo/.local/bin/pip /home/carlo/.local/bin/pip2.7


which is almost surely from before the update (I did not delete the /home partition when updating to Ubuntu18.04).
But how can I uninstall it?



If I try:



sudo apt-get remove python-pip


I obtain the result (something like this, my system is in Italian, I'm translating):



"python-pip" is not installed and cannot be removed


so, apt.-get is not finding the version of pip I want to remove from the /home folder. Same goes when using Synaptic, python-pip results not to be installed. How do I remove it?



Thanks in advance!










share|improve this question




















  • 1





    obligatory xkcd: xkcd.com/1987 – and this does not even cover snap!

    – dessert
    Feb 3 at 13:25






  • 2





    Please edit your question to include the complete output of snap list

    – user535733
    Feb 3 at 15:05
















1















I recently updated from Ubuntu 16.04 to 18.04.
I had separate partitions for / and home, and for the update I made a clean install over the / folder, so that I saved everything in the home folder, while the rest was formatted.
After the update, I only had python 3.6.7, which as I understand is the default version for the operative system. Then, I installed python 2.7 (version 2.7.15rc1, specifically), so I was expecting to have only these two versions installed.



1) Am I correct in saying that the 3.6.7 is the default version for Ubuntu 18.04? So, no matter what, this version is needed from the system, and should not be uninstalled?



2) As I said, I was expecting to have only python 3.6.7 and 2.7.15rc1 installed. However, after a search, I found these files:



/snap/core/6130/usr/bin/python3.5: Python 3.5.2
/snap/core/6130/usr/bin/python3.5m: Python 3.5.2
/snap/core/6259/usr/bin/python3.5: Python 3.5.2
/snap/core/6259/usr/bin/python3.5m: Python 3.5.2
/snap/core/6350/usr/bin/python3.5: Python 3.5.2
/snap/core/6350/usr/bin/python3.5m: Python 3.5.2


are they relics from before the update? Are they system files? Can they be removed, and how?
I don't understand what these folders contain, since as I said I formatted the / partition.
If I give the command:



snap list


I get:



Name                  Version                 Rev   Tracking  Publisher   Notes
core 16-2.37.1 6350 stable canonical✓ core
gnome-3-26-1604 3.26.0 74 stable/… canonical✓ -
gnome-calculator 3.30.1 260 stable/… canonical✓ -
gnome-characters 3.30.0 139 stable/… canonical✓ -
gnome-logs 3.30.0 45 stable/… canonical✓ -
gnome-system-monitor 3.30.0 57 stable/… canonical✓ -
gtk-common-themes 0.1-4-g88bc1b2 818 stable/… canonical✓ -
skype 8.34.0.78 66 stable skype✓ classic
spotify 1.0.98.78.gb45d2a6b-10 31 stable spotify✓ -
vlc 3.0.6 770 stable videolan✓ -


which are the programs I installed from the software center after the update to 18.04.



3) If I use the command:



whereis pip


I get the output



/home/carlo/.local/bin/pip /home/carlo/.local/bin/pip2.7


which is almost surely from before the update (I did not delete the /home partition when updating to Ubuntu18.04).
But how can I uninstall it?



If I try:



sudo apt-get remove python-pip


I obtain the result (something like this, my system is in Italian, I'm translating):



"python-pip" is not installed and cannot be removed


so, apt.-get is not finding the version of pip I want to remove from the /home folder. Same goes when using Synaptic, python-pip results not to be installed. How do I remove it?



Thanks in advance!










share|improve this question




















  • 1





    obligatory xkcd: xkcd.com/1987 – and this does not even cover snap!

    – dessert
    Feb 3 at 13:25






  • 2





    Please edit your question to include the complete output of snap list

    – user535733
    Feb 3 at 15:05














1












1








1








I recently updated from Ubuntu 16.04 to 18.04.
I had separate partitions for / and home, and for the update I made a clean install over the / folder, so that I saved everything in the home folder, while the rest was formatted.
After the update, I only had python 3.6.7, which as I understand is the default version for the operative system. Then, I installed python 2.7 (version 2.7.15rc1, specifically), so I was expecting to have only these two versions installed.



1) Am I correct in saying that the 3.6.7 is the default version for Ubuntu 18.04? So, no matter what, this version is needed from the system, and should not be uninstalled?



2) As I said, I was expecting to have only python 3.6.7 and 2.7.15rc1 installed. However, after a search, I found these files:



/snap/core/6130/usr/bin/python3.5: Python 3.5.2
/snap/core/6130/usr/bin/python3.5m: Python 3.5.2
/snap/core/6259/usr/bin/python3.5: Python 3.5.2
/snap/core/6259/usr/bin/python3.5m: Python 3.5.2
/snap/core/6350/usr/bin/python3.5: Python 3.5.2
/snap/core/6350/usr/bin/python3.5m: Python 3.5.2


are they relics from before the update? Are they system files? Can they be removed, and how?
I don't understand what these folders contain, since as I said I formatted the / partition.
If I give the command:



snap list


I get:



Name                  Version                 Rev   Tracking  Publisher   Notes
core 16-2.37.1 6350 stable canonical✓ core
gnome-3-26-1604 3.26.0 74 stable/… canonical✓ -
gnome-calculator 3.30.1 260 stable/… canonical✓ -
gnome-characters 3.30.0 139 stable/… canonical✓ -
gnome-logs 3.30.0 45 stable/… canonical✓ -
gnome-system-monitor 3.30.0 57 stable/… canonical✓ -
gtk-common-themes 0.1-4-g88bc1b2 818 stable/… canonical✓ -
skype 8.34.0.78 66 stable skype✓ classic
spotify 1.0.98.78.gb45d2a6b-10 31 stable spotify✓ -
vlc 3.0.6 770 stable videolan✓ -


which are the programs I installed from the software center after the update to 18.04.



3) If I use the command:



whereis pip


I get the output



/home/carlo/.local/bin/pip /home/carlo/.local/bin/pip2.7


which is almost surely from before the update (I did not delete the /home partition when updating to Ubuntu18.04).
But how can I uninstall it?



If I try:



sudo apt-get remove python-pip


I obtain the result (something like this, my system is in Italian, I'm translating):



"python-pip" is not installed and cannot be removed


so, apt.-get is not finding the version of pip I want to remove from the /home folder. Same goes when using Synaptic, python-pip results not to be installed. How do I remove it?



Thanks in advance!










share|improve this question
















I recently updated from Ubuntu 16.04 to 18.04.
I had separate partitions for / and home, and for the update I made a clean install over the / folder, so that I saved everything in the home folder, while the rest was formatted.
After the update, I only had python 3.6.7, which as I understand is the default version for the operative system. Then, I installed python 2.7 (version 2.7.15rc1, specifically), so I was expecting to have only these two versions installed.



1) Am I correct in saying that the 3.6.7 is the default version for Ubuntu 18.04? So, no matter what, this version is needed from the system, and should not be uninstalled?



2) As I said, I was expecting to have only python 3.6.7 and 2.7.15rc1 installed. However, after a search, I found these files:



/snap/core/6130/usr/bin/python3.5: Python 3.5.2
/snap/core/6130/usr/bin/python3.5m: Python 3.5.2
/snap/core/6259/usr/bin/python3.5: Python 3.5.2
/snap/core/6259/usr/bin/python3.5m: Python 3.5.2
/snap/core/6350/usr/bin/python3.5: Python 3.5.2
/snap/core/6350/usr/bin/python3.5m: Python 3.5.2


are they relics from before the update? Are they system files? Can they be removed, and how?
I don't understand what these folders contain, since as I said I formatted the / partition.
If I give the command:



snap list


I get:



Name                  Version                 Rev   Tracking  Publisher   Notes
core 16-2.37.1 6350 stable canonical✓ core
gnome-3-26-1604 3.26.0 74 stable/… canonical✓ -
gnome-calculator 3.30.1 260 stable/… canonical✓ -
gnome-characters 3.30.0 139 stable/… canonical✓ -
gnome-logs 3.30.0 45 stable/… canonical✓ -
gnome-system-monitor 3.30.0 57 stable/… canonical✓ -
gtk-common-themes 0.1-4-g88bc1b2 818 stable/… canonical✓ -
skype 8.34.0.78 66 stable skype✓ classic
spotify 1.0.98.78.gb45d2a6b-10 31 stable spotify✓ -
vlc 3.0.6 770 stable videolan✓ -


which are the programs I installed from the software center after the update to 18.04.



3) If I use the command:



whereis pip


I get the output



/home/carlo/.local/bin/pip /home/carlo/.local/bin/pip2.7


which is almost surely from before the update (I did not delete the /home partition when updating to Ubuntu18.04).
But how can I uninstall it?



If I try:



sudo apt-get remove python-pip


I obtain the result (something like this, my system is in Italian, I'm translating):



"python-pip" is not installed and cannot be removed


so, apt.-get is not finding the version of pip I want to remove from the /home folder. Same goes when using Synaptic, python-pip results not to be installed. How do I remove it?



Thanks in advance!







18.04 package-management software-installation python pip






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 3 at 16:56







Carlo

















asked Feb 3 at 13:03









CarloCarlo

162




162








  • 1





    obligatory xkcd: xkcd.com/1987 – and this does not even cover snap!

    – dessert
    Feb 3 at 13:25






  • 2





    Please edit your question to include the complete output of snap list

    – user535733
    Feb 3 at 15:05














  • 1





    obligatory xkcd: xkcd.com/1987 – and this does not even cover snap!

    – dessert
    Feb 3 at 13:25






  • 2





    Please edit your question to include the complete output of snap list

    – user535733
    Feb 3 at 15:05








1




1





obligatory xkcd: xkcd.com/1987 – and this does not even cover snap!

– dessert
Feb 3 at 13:25





obligatory xkcd: xkcd.com/1987 – and this does not even cover snap!

– dessert
Feb 3 at 13:25




2




2





Please edit your question to include the complete output of snap list

– user535733
Feb 3 at 15:05





Please edit your question to include the complete output of snap list

– user535733
Feb 3 at 15:05










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115245%2fremove-old-versions-of-python-and-pip%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1115245%2fremove-old-versions-of-python-and-pip%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

mysqli_query(): Empty query in /home/lucindabrummitt/public_html/blog/wp-includes/wp-db.php on line 1924

How to change which sound is reproduced for terminal bell?

Can I use Tabulator js library in my java Spring + Thymeleaf project?