How to reinstall Python 2.7 on macOS Mojave?












0















I wanted to install Python 3.7.2 on my MacBook Pro (2015) running Mojave and it would not install correctly and in attempt to trash the incorrect install I trashed the installed Python 2.7 version.



How do I reinstall Python 2.7 to correct my mistake and where to I go to make the correction? New to programming so very limited knowledge, now nothing works.










share|improve this question




















  • 2





    Can't you just reinstall v2.7?

    – fixer1234
    Jan 9 at 1:46











  • @fixer1234 Not if it’s core macOS. The best remedy is to reinstall macOS on top of the current install. That should not destroy any currently set files, applications and settings but basically just overwrites all of the core macOS system stuff which should repair things.

    – JakeGould
    Jan 9 at 15:17
















0















I wanted to install Python 3.7.2 on my MacBook Pro (2015) running Mojave and it would not install correctly and in attempt to trash the incorrect install I trashed the installed Python 2.7 version.



How do I reinstall Python 2.7 to correct my mistake and where to I go to make the correction? New to programming so very limited knowledge, now nothing works.










share|improve this question




















  • 2





    Can't you just reinstall v2.7?

    – fixer1234
    Jan 9 at 1:46











  • @fixer1234 Not if it’s core macOS. The best remedy is to reinstall macOS on top of the current install. That should not destroy any currently set files, applications and settings but basically just overwrites all of the core macOS system stuff which should repair things.

    – JakeGould
    Jan 9 at 15:17














0












0








0








I wanted to install Python 3.7.2 on my MacBook Pro (2015) running Mojave and it would not install correctly and in attempt to trash the incorrect install I trashed the installed Python 2.7 version.



How do I reinstall Python 2.7 to correct my mistake and where to I go to make the correction? New to programming so very limited knowledge, now nothing works.










share|improve this question
















I wanted to install Python 3.7.2 on my MacBook Pro (2015) running Mojave and it would not install correctly and in attempt to trash the incorrect install I trashed the installed Python 2.7 version.



How do I reinstall Python 2.7 to correct my mistake and where to I go to make the correction? New to programming so very limited knowledge, now nothing works.







macos python






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 9 at 3:23









JakeGould

31.1k1093137




31.1k1093137










asked Jan 9 at 1:37









JosJos

1




1








  • 2





    Can't you just reinstall v2.7?

    – fixer1234
    Jan 9 at 1:46











  • @fixer1234 Not if it’s core macOS. The best remedy is to reinstall macOS on top of the current install. That should not destroy any currently set files, applications and settings but basically just overwrites all of the core macOS system stuff which should repair things.

    – JakeGould
    Jan 9 at 15:17














  • 2





    Can't you just reinstall v2.7?

    – fixer1234
    Jan 9 at 1:46











  • @fixer1234 Not if it’s core macOS. The best remedy is to reinstall macOS on top of the current install. That should not destroy any currently set files, applications and settings but basically just overwrites all of the core macOS system stuff which should repair things.

    – JakeGould
    Jan 9 at 15:17








2




2





Can't you just reinstall v2.7?

– fixer1234
Jan 9 at 1:46





Can't you just reinstall v2.7?

– fixer1234
Jan 9 at 1:46













@fixer1234 Not if it’s core macOS. The best remedy is to reinstall macOS on top of the current install. That should not destroy any currently set files, applications and settings but basically just overwrites all of the core macOS system stuff which should repair things.

– JakeGould
Jan 9 at 15:17





@fixer1234 Not if it’s core macOS. The best remedy is to reinstall macOS on top of the current install. That should not destroy any currently set files, applications and settings but basically just overwrites all of the core macOS system stuff which should repair things.

– JakeGould
Jan 9 at 15:17










1 Answer
1






active

oldest

votes


















0














Mac comes with Python 2.7 by default. So did you mean that you downloaded Python 2 from here and deleted it, or that you uninstalled Python 2.7?



If you just downloaded the installer and deleted it, that shouldn't be a problem. Since Mac comes with Python 2 by default, if you haven't gotten rid of it, you should be able to open up a terminal and type in python to get a Python 2 prompt.



If you somehow uninstalled Python 2.7, then you can download a new copy of Python 2.7 from this page. (You probably want the "macOS 64-bit installer"). Download it and install it (I think the built-in app Installer can open it) and you should have Python 2 back again.



If you have some other issue (I'm not sure what you mean by "now nothing works") please specify in a comment, with the error messages if there are any, and I'll edit this answer.



Hope this helped!






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "3"
    };
    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%2fsuperuser.com%2fquestions%2f1392093%2fhow-to-reinstall-python-2-7-on-macos-mojave%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









    0














    Mac comes with Python 2.7 by default. So did you mean that you downloaded Python 2 from here and deleted it, or that you uninstalled Python 2.7?



    If you just downloaded the installer and deleted it, that shouldn't be a problem. Since Mac comes with Python 2 by default, if you haven't gotten rid of it, you should be able to open up a terminal and type in python to get a Python 2 prompt.



    If you somehow uninstalled Python 2.7, then you can download a new copy of Python 2.7 from this page. (You probably want the "macOS 64-bit installer"). Download it and install it (I think the built-in app Installer can open it) and you should have Python 2 back again.



    If you have some other issue (I'm not sure what you mean by "now nothing works") please specify in a comment, with the error messages if there are any, and I'll edit this answer.



    Hope this helped!






    share|improve this answer




























      0














      Mac comes with Python 2.7 by default. So did you mean that you downloaded Python 2 from here and deleted it, or that you uninstalled Python 2.7?



      If you just downloaded the installer and deleted it, that shouldn't be a problem. Since Mac comes with Python 2 by default, if you haven't gotten rid of it, you should be able to open up a terminal and type in python to get a Python 2 prompt.



      If you somehow uninstalled Python 2.7, then you can download a new copy of Python 2.7 from this page. (You probably want the "macOS 64-bit installer"). Download it and install it (I think the built-in app Installer can open it) and you should have Python 2 back again.



      If you have some other issue (I'm not sure what you mean by "now nothing works") please specify in a comment, with the error messages if there are any, and I'll edit this answer.



      Hope this helped!






      share|improve this answer


























        0












        0








        0







        Mac comes with Python 2.7 by default. So did you mean that you downloaded Python 2 from here and deleted it, or that you uninstalled Python 2.7?



        If you just downloaded the installer and deleted it, that shouldn't be a problem. Since Mac comes with Python 2 by default, if you haven't gotten rid of it, you should be able to open up a terminal and type in python to get a Python 2 prompt.



        If you somehow uninstalled Python 2.7, then you can download a new copy of Python 2.7 from this page. (You probably want the "macOS 64-bit installer"). Download it and install it (I think the built-in app Installer can open it) and you should have Python 2 back again.



        If you have some other issue (I'm not sure what you mean by "now nothing works") please specify in a comment, with the error messages if there are any, and I'll edit this answer.



        Hope this helped!






        share|improve this answer













        Mac comes with Python 2.7 by default. So did you mean that you downloaded Python 2 from here and deleted it, or that you uninstalled Python 2.7?



        If you just downloaded the installer and deleted it, that shouldn't be a problem. Since Mac comes with Python 2 by default, if you haven't gotten rid of it, you should be able to open up a terminal and type in python to get a Python 2 prompt.



        If you somehow uninstalled Python 2.7, then you can download a new copy of Python 2.7 from this page. (You probably want the "macOS 64-bit installer"). Download it and install it (I think the built-in app Installer can open it) and you should have Python 2 back again.



        If you have some other issue (I'm not sure what you mean by "now nothing works") please specify in a comment, with the error messages if there are any, and I'll edit this answer.



        Hope this helped!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 9 at 3:15









        an actual toasteran actual toaster

        161




        161






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Super User!


            • 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%2fsuperuser.com%2fquestions%2f1392093%2fhow-to-reinstall-python-2-7-on-macos-mojave%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

            How to reconfigure Docker Trusted Registry 2.x.x to use CEPH FS mount instead of NFS and other traditional...

            is 'sed' thread safe

            How to make a Squid Proxy server?