Failed to build Python 3.6.5

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
0
down vote

favorite












I want to install new Python version (3.6.5) on Ubuntu but get this error when compiling.



KeyError: 'ffi_cflags'
Makefile:596: recipe for target 'sharedmods' failed
make: *** [sharedmods] Error 1


I issued these commands:



mkdir soft && cd soft
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
tar xvJf Python-3.6.5.tar.xz
cd Python-3.6.5
./configure
make









share|improve this question



























    up vote
    0
    down vote

    favorite












    I want to install new Python version (3.6.5) on Ubuntu but get this error when compiling.



    KeyError: 'ffi_cflags'
    Makefile:596: recipe for target 'sharedmods' failed
    make: *** [sharedmods] Error 1


    I issued these commands:



    mkdir soft && cd soft
    wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
    tar xvJf Python-3.6.5.tar.xz
    cd Python-3.6.5
    ./configure
    make









    share|improve this question

























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      I want to install new Python version (3.6.5) on Ubuntu but get this error when compiling.



      KeyError: 'ffi_cflags'
      Makefile:596: recipe for target 'sharedmods' failed
      make: *** [sharedmods] Error 1


      I issued these commands:



      mkdir soft && cd soft
      wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
      tar xvJf Python-3.6.5.tar.xz
      cd Python-3.6.5
      ./configure
      make









      share|improve this question















      I want to install new Python version (3.6.5) on Ubuntu but get this error when compiling.



      KeyError: 'ffi_cflags'
      Makefile:596: recipe for target 'sharedmods' failed
      make: *** [sharedmods] Error 1


      I issued these commands:



      mkdir soft && cd soft
      wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tar.xz
      tar xvJf Python-3.6.5.tar.xz
      cd Python-3.6.5
      ./configure
      make






      python compiling python3






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 18 at 12:28









      Melebius

      3,76841636




      3,76841636










      asked Apr 18 at 11:36









      Jack

      1




      1




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          This will not fix your issue with compiling, but you might want to install Python 3.6.5 using a PPA:



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





          share|improve this answer






















          • @Melebius : Jack seems to need to install Python3.6.5. I don't know why he does not have ffi_cflags as a dictionary key, but using a workaround might help him to install Python3.6.5.
            – Florian
            Apr 18 at 12:37










          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',
          convertImagesToLinks: true,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          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%2f1026083%2ffailed-to-build-python-3-6-5%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          1
          down vote













          This will not fix your issue with compiling, but you might want to install Python 3.6.5 using a PPA:



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





          share|improve this answer






















          • @Melebius : Jack seems to need to install Python3.6.5. I don't know why he does not have ffi_cflags as a dictionary key, but using a workaround might help him to install Python3.6.5.
            – Florian
            Apr 18 at 12:37














          up vote
          1
          down vote













          This will not fix your issue with compiling, but you might want to install Python 3.6.5 using a PPA:



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





          share|improve this answer






















          • @Melebius : Jack seems to need to install Python3.6.5. I don't know why he does not have ffi_cflags as a dictionary key, but using a workaround might help him to install Python3.6.5.
            – Florian
            Apr 18 at 12:37












          up vote
          1
          down vote










          up vote
          1
          down vote









          This will not fix your issue with compiling, but you might want to install Python 3.6.5 using a PPA:



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





          share|improve this answer














          This will not fix your issue with compiling, but you might want to install Python 3.6.5 using a PPA:



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






          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Apr 18 at 12:45









          Melebius

          3,76841636




          3,76841636










          answered Apr 18 at 12:23









          Florian

          1393




          1393











          • @Melebius : Jack seems to need to install Python3.6.5. I don't know why he does not have ffi_cflags as a dictionary key, but using a workaround might help him to install Python3.6.5.
            – Florian
            Apr 18 at 12:37
















          • @Melebius : Jack seems to need to install Python3.6.5. I don't know why he does not have ffi_cflags as a dictionary key, but using a workaround might help him to install Python3.6.5.
            – Florian
            Apr 18 at 12:37















          @Melebius : Jack seems to need to install Python3.6.5. I don't know why he does not have ffi_cflags as a dictionary key, but using a workaround might help him to install Python3.6.5.
          – Florian
          Apr 18 at 12:37




          @Melebius : Jack seems to need to install Python3.6.5. I don't know why he does not have ffi_cflags as a dictionary key, but using a workaround might help him to install Python3.6.5.
          – Florian
          Apr 18 at 12:37

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1026083%2ffailed-to-build-python-3-6-5%23new-answer', 'question_page');

          );

          Post as a guest













































































          Popular posts from this blog

          GRUB: Fatal! inconsistent data read from (0x84) 0+xxxxxx

          `kcmshell` modules relation with `/usr/share/applications`

          How to enroll fingerprints to Ubuntu 17.10 with VFS491