How to remove Python 3.6 from Ubuntu?





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







0















I just installed Ubuntu, and it comes with default a default Python version of 3.6.7. I installed Python 3.7.3 by following these instructions (changing 3.7.2 to 3.7.3 as appropriate) and it all worked well.



Now I have two Python 3 versions, both working. I would now like to remove Python 3.6.7 and keep 3.7.3.



How should I go about doing this?










share|improve this question









New contributor




User1984 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    Don't remove python if you want to keep using Ubuntu. Things will break if you do, so think of plan B now.

    – mikewhatever
    Apr 6 at 19:32













  • @mikewhatever thanks, but when i do pip3 install .. it doesn't work it just installs for python 3.6 and python 3.7 doesn't get installation

    – User1984
    Apr 6 at 19:33






  • 2





    @User1984 Then why didn't you ask for that? Please read xyproblem.info And the solution would be to try pip3.7.

    – Murphy
    Apr 6 at 19:50













  • @Murphy i got this error when i ran pip3.7 install requests Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.7/site-packages/chardet' Consider using the --user option or check the permissions.

    – User1984
    Apr 6 at 19:57






  • 1





    "why should i keep more than one python3 version on my pc" For the exact reason you were given by @mikewhatever. BTW, this would be a good time to take the tour and read How to Ask.

    – Murphy
    Apr 6 at 20:11


















0















I just installed Ubuntu, and it comes with default a default Python version of 3.6.7. I installed Python 3.7.3 by following these instructions (changing 3.7.2 to 3.7.3 as appropriate) and it all worked well.



Now I have two Python 3 versions, both working. I would now like to remove Python 3.6.7 and keep 3.7.3.



How should I go about doing this?










share|improve this question









New contributor




User1984 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    Don't remove python if you want to keep using Ubuntu. Things will break if you do, so think of plan B now.

    – mikewhatever
    Apr 6 at 19:32













  • @mikewhatever thanks, but when i do pip3 install .. it doesn't work it just installs for python 3.6 and python 3.7 doesn't get installation

    – User1984
    Apr 6 at 19:33






  • 2





    @User1984 Then why didn't you ask for that? Please read xyproblem.info And the solution would be to try pip3.7.

    – Murphy
    Apr 6 at 19:50













  • @Murphy i got this error when i ran pip3.7 install requests Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.7/site-packages/chardet' Consider using the --user option or check the permissions.

    – User1984
    Apr 6 at 19:57






  • 1





    "why should i keep more than one python3 version on my pc" For the exact reason you were given by @mikewhatever. BTW, this would be a good time to take the tour and read How to Ask.

    – Murphy
    Apr 6 at 20:11














0












0








0








I just installed Ubuntu, and it comes with default a default Python version of 3.6.7. I installed Python 3.7.3 by following these instructions (changing 3.7.2 to 3.7.3 as appropriate) and it all worked well.



Now I have two Python 3 versions, both working. I would now like to remove Python 3.6.7 and keep 3.7.3.



How should I go about doing this?










share|improve this question









New contributor




User1984 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I just installed Ubuntu, and it comes with default a default Python version of 3.6.7. I installed Python 3.7.3 by following these instructions (changing 3.7.2 to 3.7.3 as appropriate) and it all worked well.



Now I have two Python 3 versions, both working. I would now like to remove Python 3.6.7 and keep 3.7.3.



How should I go about doing this?







python uninstall






share|improve this question









New contributor




User1984 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




User1984 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited Apr 7 at 2:13









Kevin Bowen

14.8k155971




14.8k155971






New contributor




User1984 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Apr 6 at 19:11









User1984User1984

1




1




New contributor




User1984 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





User1984 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






User1984 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 1





    Don't remove python if you want to keep using Ubuntu. Things will break if you do, so think of plan B now.

    – mikewhatever
    Apr 6 at 19:32













  • @mikewhatever thanks, but when i do pip3 install .. it doesn't work it just installs for python 3.6 and python 3.7 doesn't get installation

    – User1984
    Apr 6 at 19:33






  • 2





    @User1984 Then why didn't you ask for that? Please read xyproblem.info And the solution would be to try pip3.7.

    – Murphy
    Apr 6 at 19:50













  • @Murphy i got this error when i ran pip3.7 install requests Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.7/site-packages/chardet' Consider using the --user option or check the permissions.

    – User1984
    Apr 6 at 19:57






  • 1





    "why should i keep more than one python3 version on my pc" For the exact reason you were given by @mikewhatever. BTW, this would be a good time to take the tour and read How to Ask.

    – Murphy
    Apr 6 at 20:11














  • 1





    Don't remove python if you want to keep using Ubuntu. Things will break if you do, so think of plan B now.

    – mikewhatever
    Apr 6 at 19:32













  • @mikewhatever thanks, but when i do pip3 install .. it doesn't work it just installs for python 3.6 and python 3.7 doesn't get installation

    – User1984
    Apr 6 at 19:33






  • 2





    @User1984 Then why didn't you ask for that? Please read xyproblem.info And the solution would be to try pip3.7.

    – Murphy
    Apr 6 at 19:50













  • @Murphy i got this error when i ran pip3.7 install requests Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.7/site-packages/chardet' Consider using the --user option or check the permissions.

    – User1984
    Apr 6 at 19:57






  • 1





    "why should i keep more than one python3 version on my pc" For the exact reason you were given by @mikewhatever. BTW, this would be a good time to take the tour and read How to Ask.

    – Murphy
    Apr 6 at 20:11








1




1





Don't remove python if you want to keep using Ubuntu. Things will break if you do, so think of plan B now.

– mikewhatever
Apr 6 at 19:32







Don't remove python if you want to keep using Ubuntu. Things will break if you do, so think of plan B now.

– mikewhatever
Apr 6 at 19:32















@mikewhatever thanks, but when i do pip3 install .. it doesn't work it just installs for python 3.6 and python 3.7 doesn't get installation

– User1984
Apr 6 at 19:33





@mikewhatever thanks, but when i do pip3 install .. it doesn't work it just installs for python 3.6 and python 3.7 doesn't get installation

– User1984
Apr 6 at 19:33




2




2





@User1984 Then why didn't you ask for that? Please read xyproblem.info And the solution would be to try pip3.7.

– Murphy
Apr 6 at 19:50







@User1984 Then why didn't you ask for that? Please read xyproblem.info And the solution would be to try pip3.7.

– Murphy
Apr 6 at 19:50















@Murphy i got this error when i ran pip3.7 install requests Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.7/site-packages/chardet' Consider using the --user option or check the permissions.

– User1984
Apr 6 at 19:57





@Murphy i got this error when i ran pip3.7 install requests Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/usr/local/lib/python3.7/site-packages/chardet' Consider using the --user option or check the permissions.

– User1984
Apr 6 at 19:57




1




1





"why should i keep more than one python3 version on my pc" For the exact reason you were given by @mikewhatever. BTW, this would be a good time to take the tour and read How to Ask.

– Murphy
Apr 6 at 20:11





"why should i keep more than one python3 version on my pc" For the exact reason you were given by @mikewhatever. BTW, this would be a good time to take the tour and read How to Ask.

– Murphy
Apr 6 at 20:11










1 Answer
1






active

oldest

votes


















1














Ubuntu uses python for many system related functionalities. You must not remove the Python installation that is preinstalled by it, or you'll end up with a broken system, perhaps beyond repair.



If for some reason you need to use a more recent Python version, just install it parallel and call it explicitely, e. g. with python3.7, as python3 will point to the default installation. The same goes for pip, which may need the --user option or being called with sudo depending on the permissions.






share|improve this answer
























  • can you give me example of using pip3.7 that will work i.e pip3.7 install requests --user ??

    – User1984
    Apr 6 at 20:18












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
});


}
});






User1984 is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1131731%2fhow-to-remove-python-3-6-from-ubuntu%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Ubuntu uses python for many system related functionalities. You must not remove the Python installation that is preinstalled by it, or you'll end up with a broken system, perhaps beyond repair.



If for some reason you need to use a more recent Python version, just install it parallel and call it explicitely, e. g. with python3.7, as python3 will point to the default installation. The same goes for pip, which may need the --user option or being called with sudo depending on the permissions.






share|improve this answer
























  • can you give me example of using pip3.7 that will work i.e pip3.7 install requests --user ??

    – User1984
    Apr 6 at 20:18
















1














Ubuntu uses python for many system related functionalities. You must not remove the Python installation that is preinstalled by it, or you'll end up with a broken system, perhaps beyond repair.



If for some reason you need to use a more recent Python version, just install it parallel and call it explicitely, e. g. with python3.7, as python3 will point to the default installation. The same goes for pip, which may need the --user option or being called with sudo depending on the permissions.






share|improve this answer
























  • can you give me example of using pip3.7 that will work i.e pip3.7 install requests --user ??

    – User1984
    Apr 6 at 20:18














1












1








1







Ubuntu uses python for many system related functionalities. You must not remove the Python installation that is preinstalled by it, or you'll end up with a broken system, perhaps beyond repair.



If for some reason you need to use a more recent Python version, just install it parallel and call it explicitely, e. g. with python3.7, as python3 will point to the default installation. The same goes for pip, which may need the --user option or being called with sudo depending on the permissions.






share|improve this answer













Ubuntu uses python for many system related functionalities. You must not remove the Python installation that is preinstalled by it, or you'll end up with a broken system, perhaps beyond repair.



If for some reason you need to use a more recent Python version, just install it parallel and call it explicitely, e. g. with python3.7, as python3 will point to the default installation. The same goes for pip, which may need the --user option or being called with sudo depending on the permissions.







share|improve this answer












share|improve this answer



share|improve this answer










answered Apr 6 at 20:08









MurphyMurphy

793315




793315













  • can you give me example of using pip3.7 that will work i.e pip3.7 install requests --user ??

    – User1984
    Apr 6 at 20:18



















  • can you give me example of using pip3.7 that will work i.e pip3.7 install requests --user ??

    – User1984
    Apr 6 at 20:18

















can you give me example of using pip3.7 that will work i.e pip3.7 install requests --user ??

– User1984
Apr 6 at 20:18





can you give me example of using pip3.7 that will work i.e pip3.7 install requests --user ??

– User1984
Apr 6 at 20:18










User1984 is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















User1984 is a new contributor. Be nice, and check out our Code of Conduct.













User1984 is a new contributor. Be nice, and check out our Code of Conduct.












User1984 is a new contributor. Be nice, and check out our Code of Conduct.
















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%2f1131731%2fhow-to-remove-python-3-6-from-ubuntu%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

GameSpot

日野市

Tu-95轟炸機