Install Python 3.6 on Debian8 Jessie












3















Debian8 comes with Python 3.4, but I need to install 3.6 version. I wonder is it possible at all? Cause I failed so many times.



I have tried options mentioned in (How to install Python 3.6), but for make -j8 step I get tons of the following errors:



libpython3.6m.alibpython3.6m.a((descrobject.ocompile.o))::  InIn  functionfunction `getset_get_doc':
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_indirect_call_profiler_v2'
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_indirect_call_callee'
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_time_profiler'
libpython3.6m.a(descrobject.o): In function `member_get_doc':
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_indirect_call_profiler_v2'
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_indirect_call_callee'
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_time_profiler'


and so on...



I don't want to use "http://ftp.de.debian.org/debian testing main" cause it contains experimental package and I'm not confident if that's right version to use on production.



I've also tried to do same thing with Debian 9, but had similar problems.










share|improve this question























  • You can download the source of python 3.6 package from buster release and build the package. How to do it is described here: wiki.debian.org/BuildingTutorial Here you have the same question as your: unix.stackexchange.com/questions/332641/…

    – mariaczi
    Apr 4 '18 at 12:32


















3















Debian8 comes with Python 3.4, but I need to install 3.6 version. I wonder is it possible at all? Cause I failed so many times.



I have tried options mentioned in (How to install Python 3.6), but for make -j8 step I get tons of the following errors:



libpython3.6m.alibpython3.6m.a((descrobject.ocompile.o))::  InIn  functionfunction `getset_get_doc':
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_indirect_call_profiler_v2'
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_indirect_call_callee'
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_time_profiler'
libpython3.6m.a(descrobject.o): In function `member_get_doc':
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_indirect_call_profiler_v2'
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_indirect_call_callee'
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_time_profiler'


and so on...



I don't want to use "http://ftp.de.debian.org/debian testing main" cause it contains experimental package and I'm not confident if that's right version to use on production.



I've also tried to do same thing with Debian 9, but had similar problems.










share|improve this question























  • You can download the source of python 3.6 package from buster release and build the package. How to do it is described here: wiki.debian.org/BuildingTutorial Here you have the same question as your: unix.stackexchange.com/questions/332641/…

    – mariaczi
    Apr 4 '18 at 12:32
















3












3








3








Debian8 comes with Python 3.4, but I need to install 3.6 version. I wonder is it possible at all? Cause I failed so many times.



I have tried options mentioned in (How to install Python 3.6), but for make -j8 step I get tons of the following errors:



libpython3.6m.alibpython3.6m.a((descrobject.ocompile.o))::  InIn  functionfunction `getset_get_doc':
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_indirect_call_profiler_v2'
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_indirect_call_callee'
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_time_profiler'
libpython3.6m.a(descrobject.o): In function `member_get_doc':
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_indirect_call_profiler_v2'
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_indirect_call_callee'
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_time_profiler'


and so on...



I don't want to use "http://ftp.de.debian.org/debian testing main" cause it contains experimental package and I'm not confident if that's right version to use on production.



I've also tried to do same thing with Debian 9, but had similar problems.










share|improve this question














Debian8 comes with Python 3.4, but I need to install 3.6 version. I wonder is it possible at all? Cause I failed so many times.



I have tried options mentioned in (How to install Python 3.6), but for make -j8 step I get tons of the following errors:



libpython3.6m.alibpython3.6m.a((descrobject.ocompile.o))::  InIn  functionfunction `getset_get_doc':
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_indirect_call_profiler_v2'
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_indirect_call_callee'
/root/python3/Python-3.6.3/Objects/descrobject.c:438: undefined reference to `__gcov_time_profiler'
libpython3.6m.a(descrobject.o): In function `member_get_doc':
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_indirect_call_profiler_v2'
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_indirect_call_callee'
/root/python3/Python-3.6.3/Objects/descrobject.c:422: undefined reference to `__gcov_time_profiler'


and so on...



I don't want to use "http://ftp.de.debian.org/debian testing main" cause it contains experimental package and I'm not confident if that's right version to use on production.



I've also tried to do same thing with Debian 9, but had similar problems.







debian make python3






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 4 '18 at 12:16









Andrii NikolaienkoAndrii Nikolaienko

11815




11815













  • You can download the source of python 3.6 package from buster release and build the package. How to do it is described here: wiki.debian.org/BuildingTutorial Here you have the same question as your: unix.stackexchange.com/questions/332641/…

    – mariaczi
    Apr 4 '18 at 12:32





















  • You can download the source of python 3.6 package from buster release and build the package. How to do it is described here: wiki.debian.org/BuildingTutorial Here you have the same question as your: unix.stackexchange.com/questions/332641/…

    – mariaczi
    Apr 4 '18 at 12:32



















You can download the source of python 3.6 package from buster release and build the package. How to do it is described here: wiki.debian.org/BuildingTutorial Here you have the same question as your: unix.stackexchange.com/questions/332641/…

– mariaczi
Apr 4 '18 at 12:32







You can download the source of python 3.6 package from buster release and build the package. How to do it is described here: wiki.debian.org/BuildingTutorial Here you have the same question as your: unix.stackexchange.com/questions/332641/…

– mariaczi
Apr 4 '18 at 12:32












2 Answers
2






active

oldest

votes


















5














I just had to do this, I find whenever I build python from source I have many issues (the 2 most annoying are not having a history when pressing the up key and getting an _sqlite module not available! Both can be fixed but it's just annoying having to fix them).



So to answer your question, the best way is to add Felix Krull's deadsnakes PPA at;
https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa;



sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get update
sudo apt-get install python3.6




There is also J Fernyhough's PPA at;
https://launchpad.net/~jonathonf/+archive/ubuntu/python-3.6;



sudo add-apt-repository ppa:jonathonf/python-3.6
sudo apt-get update
sudo apt-get install python3.6


Then rather than calling python3 we call python3.6





As Ubuntu is Debian based, and so long as you have a standard install adding Ubuntu PPA's has always worked out fine for me. I have used this on Linux Mint 18.1, 18.3, and a Debian version I fail to recall, but never had any issues.






share|improve this answer


























  • That sounds exactly what I wanted. I will need to get another VPS to test this, cause I already set up production with Python 3.4 :D Thanks a lot.

    – Andrii Nikolaienko
    Apr 5 '18 at 15:53











  • Neither of the above PPAs worked for me. I got something similar to "W: Failed to fetch ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/jessie/main/… 404 Not Found" in both cases

    – Brian Peterson
    Jun 11 '18 at 16:48











  • Oh, woops, I let add-apt-repository command look for jessie in dists, when obviously ubunu doesn't have this.

    – Brian Peterson
    Jun 11 '18 at 16:50











  • They are not available for jessie. The oldest OS is trusty in both cases...

    – Alex Poca
    Jul 26 '18 at 9:14






  • 2





    @AlexPoca 14.04 trusty = jessie / sid <<<--- trusty is jessie askubuntu.com/questions/445487/… .. besides that the point is that it installs - and works perfectly fine!

    – Jamie Lindsey
    Aug 17 '18 at 16:46





















0














It's worth noting that to add the PPA's, you will need the software-properties-common package installed.



Without this, you'll get:



bash: add-apt-repository: command not found


Or something similar. To fix this, simply run:



sudo apt-get install software-properties-common


And it'll install the add-apt-repository command for you!



NOTE: I'm aware this should really be a comment, but I don't have the rep to do so. Please feel free to edit this in to one!






share|improve this answer























    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f435500%2finstall-python-3-6-on-debian8-jessie%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    I just had to do this, I find whenever I build python from source I have many issues (the 2 most annoying are not having a history when pressing the up key and getting an _sqlite module not available! Both can be fixed but it's just annoying having to fix them).



    So to answer your question, the best way is to add Felix Krull's deadsnakes PPA at;
    https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa;



    sudo add-apt-repository ppa:deadsnakes/ppa
    sudo apt-get update
    sudo apt-get install python3.6




    There is also J Fernyhough's PPA at;
    https://launchpad.net/~jonathonf/+archive/ubuntu/python-3.6;



    sudo add-apt-repository ppa:jonathonf/python-3.6
    sudo apt-get update
    sudo apt-get install python3.6


    Then rather than calling python3 we call python3.6





    As Ubuntu is Debian based, and so long as you have a standard install adding Ubuntu PPA's has always worked out fine for me. I have used this on Linux Mint 18.1, 18.3, and a Debian version I fail to recall, but never had any issues.






    share|improve this answer


























    • That sounds exactly what I wanted. I will need to get another VPS to test this, cause I already set up production with Python 3.4 :D Thanks a lot.

      – Andrii Nikolaienko
      Apr 5 '18 at 15:53











    • Neither of the above PPAs worked for me. I got something similar to "W: Failed to fetch ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/jessie/main/… 404 Not Found" in both cases

      – Brian Peterson
      Jun 11 '18 at 16:48











    • Oh, woops, I let add-apt-repository command look for jessie in dists, when obviously ubunu doesn't have this.

      – Brian Peterson
      Jun 11 '18 at 16:50











    • They are not available for jessie. The oldest OS is trusty in both cases...

      – Alex Poca
      Jul 26 '18 at 9:14






    • 2





      @AlexPoca 14.04 trusty = jessie / sid <<<--- trusty is jessie askubuntu.com/questions/445487/… .. besides that the point is that it installs - and works perfectly fine!

      – Jamie Lindsey
      Aug 17 '18 at 16:46


















    5














    I just had to do this, I find whenever I build python from source I have many issues (the 2 most annoying are not having a history when pressing the up key and getting an _sqlite module not available! Both can be fixed but it's just annoying having to fix them).



    So to answer your question, the best way is to add Felix Krull's deadsnakes PPA at;
    https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa;



    sudo add-apt-repository ppa:deadsnakes/ppa
    sudo apt-get update
    sudo apt-get install python3.6




    There is also J Fernyhough's PPA at;
    https://launchpad.net/~jonathonf/+archive/ubuntu/python-3.6;



    sudo add-apt-repository ppa:jonathonf/python-3.6
    sudo apt-get update
    sudo apt-get install python3.6


    Then rather than calling python3 we call python3.6





    As Ubuntu is Debian based, and so long as you have a standard install adding Ubuntu PPA's has always worked out fine for me. I have used this on Linux Mint 18.1, 18.3, and a Debian version I fail to recall, but never had any issues.






    share|improve this answer


























    • That sounds exactly what I wanted. I will need to get another VPS to test this, cause I already set up production with Python 3.4 :D Thanks a lot.

      – Andrii Nikolaienko
      Apr 5 '18 at 15:53











    • Neither of the above PPAs worked for me. I got something similar to "W: Failed to fetch ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/jessie/main/… 404 Not Found" in both cases

      – Brian Peterson
      Jun 11 '18 at 16:48











    • Oh, woops, I let add-apt-repository command look for jessie in dists, when obviously ubunu doesn't have this.

      – Brian Peterson
      Jun 11 '18 at 16:50











    • They are not available for jessie. The oldest OS is trusty in both cases...

      – Alex Poca
      Jul 26 '18 at 9:14






    • 2





      @AlexPoca 14.04 trusty = jessie / sid <<<--- trusty is jessie askubuntu.com/questions/445487/… .. besides that the point is that it installs - and works perfectly fine!

      – Jamie Lindsey
      Aug 17 '18 at 16:46
















    5












    5








    5







    I just had to do this, I find whenever I build python from source I have many issues (the 2 most annoying are not having a history when pressing the up key and getting an _sqlite module not available! Both can be fixed but it's just annoying having to fix them).



    So to answer your question, the best way is to add Felix Krull's deadsnakes PPA at;
    https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa;



    sudo add-apt-repository ppa:deadsnakes/ppa
    sudo apt-get update
    sudo apt-get install python3.6




    There is also J Fernyhough's PPA at;
    https://launchpad.net/~jonathonf/+archive/ubuntu/python-3.6;



    sudo add-apt-repository ppa:jonathonf/python-3.6
    sudo apt-get update
    sudo apt-get install python3.6


    Then rather than calling python3 we call python3.6





    As Ubuntu is Debian based, and so long as you have a standard install adding Ubuntu PPA's has always worked out fine for me. I have used this on Linux Mint 18.1, 18.3, and a Debian version I fail to recall, but never had any issues.






    share|improve this answer















    I just had to do this, I find whenever I build python from source I have many issues (the 2 most annoying are not having a history when pressing the up key and getting an _sqlite module not available! Both can be fixed but it's just annoying having to fix them).



    So to answer your question, the best way is to add Felix Krull's deadsnakes PPA at;
    https://launchpad.net/~deadsnakes/+archive/ubuntu/ppa;



    sudo add-apt-repository ppa:deadsnakes/ppa
    sudo apt-get update
    sudo apt-get install python3.6




    There is also J Fernyhough's PPA at;
    https://launchpad.net/~jonathonf/+archive/ubuntu/python-3.6;



    sudo add-apt-repository ppa:jonathonf/python-3.6
    sudo apt-get update
    sudo apt-get install python3.6


    Then rather than calling python3 we call python3.6





    As Ubuntu is Debian based, and so long as you have a standard install adding Ubuntu PPA's has always worked out fine for me. I have used this on Linux Mint 18.1, 18.3, and a Debian version I fail to recall, but never had any issues.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 5 '18 at 13:17

























    answered Apr 5 '18 at 13:10









    Jamie LindseyJamie Lindsey

    765




    765













    • That sounds exactly what I wanted. I will need to get another VPS to test this, cause I already set up production with Python 3.4 :D Thanks a lot.

      – Andrii Nikolaienko
      Apr 5 '18 at 15:53











    • Neither of the above PPAs worked for me. I got something similar to "W: Failed to fetch ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/jessie/main/… 404 Not Found" in both cases

      – Brian Peterson
      Jun 11 '18 at 16:48











    • Oh, woops, I let add-apt-repository command look for jessie in dists, when obviously ubunu doesn't have this.

      – Brian Peterson
      Jun 11 '18 at 16:50











    • They are not available for jessie. The oldest OS is trusty in both cases...

      – Alex Poca
      Jul 26 '18 at 9:14






    • 2





      @AlexPoca 14.04 trusty = jessie / sid <<<--- trusty is jessie askubuntu.com/questions/445487/… .. besides that the point is that it installs - and works perfectly fine!

      – Jamie Lindsey
      Aug 17 '18 at 16:46





















    • That sounds exactly what I wanted. I will need to get another VPS to test this, cause I already set up production with Python 3.4 :D Thanks a lot.

      – Andrii Nikolaienko
      Apr 5 '18 at 15:53











    • Neither of the above PPAs worked for me. I got something similar to "W: Failed to fetch ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/jessie/main/… 404 Not Found" in both cases

      – Brian Peterson
      Jun 11 '18 at 16:48











    • Oh, woops, I let add-apt-repository command look for jessie in dists, when obviously ubunu doesn't have this.

      – Brian Peterson
      Jun 11 '18 at 16:50











    • They are not available for jessie. The oldest OS is trusty in both cases...

      – Alex Poca
      Jul 26 '18 at 9:14






    • 2





      @AlexPoca 14.04 trusty = jessie / sid <<<--- trusty is jessie askubuntu.com/questions/445487/… .. besides that the point is that it installs - and works perfectly fine!

      – Jamie Lindsey
      Aug 17 '18 at 16:46



















    That sounds exactly what I wanted. I will need to get another VPS to test this, cause I already set up production with Python 3.4 :D Thanks a lot.

    – Andrii Nikolaienko
    Apr 5 '18 at 15:53





    That sounds exactly what I wanted. I will need to get another VPS to test this, cause I already set up production with Python 3.4 :D Thanks a lot.

    – Andrii Nikolaienko
    Apr 5 '18 at 15:53













    Neither of the above PPAs worked for me. I got something similar to "W: Failed to fetch ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/jessie/main/… 404 Not Found" in both cases

    – Brian Peterson
    Jun 11 '18 at 16:48





    Neither of the above PPAs worked for me. I got something similar to "W: Failed to fetch ppa.launchpad.net/jonathonf/python-3.6/ubuntu/dists/jessie/main/… 404 Not Found" in both cases

    – Brian Peterson
    Jun 11 '18 at 16:48













    Oh, woops, I let add-apt-repository command look for jessie in dists, when obviously ubunu doesn't have this.

    – Brian Peterson
    Jun 11 '18 at 16:50





    Oh, woops, I let add-apt-repository command look for jessie in dists, when obviously ubunu doesn't have this.

    – Brian Peterson
    Jun 11 '18 at 16:50













    They are not available for jessie. The oldest OS is trusty in both cases...

    – Alex Poca
    Jul 26 '18 at 9:14





    They are not available for jessie. The oldest OS is trusty in both cases...

    – Alex Poca
    Jul 26 '18 at 9:14




    2




    2





    @AlexPoca 14.04 trusty = jessie / sid <<<--- trusty is jessie askubuntu.com/questions/445487/… .. besides that the point is that it installs - and works perfectly fine!

    – Jamie Lindsey
    Aug 17 '18 at 16:46







    @AlexPoca 14.04 trusty = jessie / sid <<<--- trusty is jessie askubuntu.com/questions/445487/… .. besides that the point is that it installs - and works perfectly fine!

    – Jamie Lindsey
    Aug 17 '18 at 16:46















    0














    It's worth noting that to add the PPA's, you will need the software-properties-common package installed.



    Without this, you'll get:



    bash: add-apt-repository: command not found


    Or something similar. To fix this, simply run:



    sudo apt-get install software-properties-common


    And it'll install the add-apt-repository command for you!



    NOTE: I'm aware this should really be a comment, but I don't have the rep to do so. Please feel free to edit this in to one!






    share|improve this answer




























      0














      It's worth noting that to add the PPA's, you will need the software-properties-common package installed.



      Without this, you'll get:



      bash: add-apt-repository: command not found


      Or something similar. To fix this, simply run:



      sudo apt-get install software-properties-common


      And it'll install the add-apt-repository command for you!



      NOTE: I'm aware this should really be a comment, but I don't have the rep to do so. Please feel free to edit this in to one!






      share|improve this answer


























        0












        0








        0







        It's worth noting that to add the PPA's, you will need the software-properties-common package installed.



        Without this, you'll get:



        bash: add-apt-repository: command not found


        Or something similar. To fix this, simply run:



        sudo apt-get install software-properties-common


        And it'll install the add-apt-repository command for you!



        NOTE: I'm aware this should really be a comment, but I don't have the rep to do so. Please feel free to edit this in to one!






        share|improve this answer













        It's worth noting that to add the PPA's, you will need the software-properties-common package installed.



        Without this, you'll get:



        bash: add-apt-repository: command not found


        Or something similar. To fix this, simply run:



        sudo apt-get install software-properties-common


        And it'll install the add-apt-repository command for you!



        NOTE: I'm aware this should really be a comment, but I don't have the rep to do so. Please feel free to edit this in to one!







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered 3 hours ago









        Jack_HuJack_Hu

        61




        61






























            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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%2funix.stackexchange.com%2fquestions%2f435500%2finstall-python-3-6-on-debian8-jessie%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

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt