Failed building wheel for twisted











up vote
5
down vote

favorite












I made virtualenv, new blank django project and I want to install Channels. I use Python 3.6.3. I typed pip install -U channels and this is OUTPUT:



...
Failed building wheel for twisted
...
Command "/home/marcin/Documents/django_projects/channels/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ic8ux9ei/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ox6bclm5-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/marcin/Documents/django_projects/channels/include/site/python3.6/twisted" failed with error code 1 in /tmp/pip-build-ic8ux9ei/twisted/


pip list OUTPUT:



...
Django (1.11.6)
...
pip (9.0.1)
...
setuptools (36.6.0)
...
wheel (0.29.0)
...


I see that I don't have Twisted, so I typed:pip install twisted. This is OUTPUT:



...
Failed building wheel for twisted
...
Command "/home/marcin/Documents/django_projects/channels/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a54n37_z/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-9p23ehnv-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/marcin/Documents/django_projects/channels/include/site/python3.6/twisted" failed with error code 1 in /tmp/pip-build-a54n37_z/twisted/


As You can see the Outputs are almost the same. How can I install Channels?










share|improve this question






















  • You might be missing a few packages that are installed using apt. Try sudo apt install python3.6-dev and then repeat the installation process for pip.
    – edwinksl
    Oct 20 '17 at 23:41












  • Sounds good; I will write an answer in case there are other people who face the same problem :)
    – edwinksl
    Oct 21 '17 at 8:54















up vote
5
down vote

favorite












I made virtualenv, new blank django project and I want to install Channels. I use Python 3.6.3. I typed pip install -U channels and this is OUTPUT:



...
Failed building wheel for twisted
...
Command "/home/marcin/Documents/django_projects/channels/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ic8ux9ei/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ox6bclm5-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/marcin/Documents/django_projects/channels/include/site/python3.6/twisted" failed with error code 1 in /tmp/pip-build-ic8ux9ei/twisted/


pip list OUTPUT:



...
Django (1.11.6)
...
pip (9.0.1)
...
setuptools (36.6.0)
...
wheel (0.29.0)
...


I see that I don't have Twisted, so I typed:pip install twisted. This is OUTPUT:



...
Failed building wheel for twisted
...
Command "/home/marcin/Documents/django_projects/channels/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a54n37_z/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-9p23ehnv-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/marcin/Documents/django_projects/channels/include/site/python3.6/twisted" failed with error code 1 in /tmp/pip-build-a54n37_z/twisted/


As You can see the Outputs are almost the same. How can I install Channels?










share|improve this question






















  • You might be missing a few packages that are installed using apt. Try sudo apt install python3.6-dev and then repeat the installation process for pip.
    – edwinksl
    Oct 20 '17 at 23:41












  • Sounds good; I will write an answer in case there are other people who face the same problem :)
    – edwinksl
    Oct 21 '17 at 8:54













up vote
5
down vote

favorite









up vote
5
down vote

favorite











I made virtualenv, new blank django project and I want to install Channels. I use Python 3.6.3. I typed pip install -U channels and this is OUTPUT:



...
Failed building wheel for twisted
...
Command "/home/marcin/Documents/django_projects/channels/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ic8ux9ei/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ox6bclm5-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/marcin/Documents/django_projects/channels/include/site/python3.6/twisted" failed with error code 1 in /tmp/pip-build-ic8ux9ei/twisted/


pip list OUTPUT:



...
Django (1.11.6)
...
pip (9.0.1)
...
setuptools (36.6.0)
...
wheel (0.29.0)
...


I see that I don't have Twisted, so I typed:pip install twisted. This is OUTPUT:



...
Failed building wheel for twisted
...
Command "/home/marcin/Documents/django_projects/channels/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a54n37_z/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-9p23ehnv-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/marcin/Documents/django_projects/channels/include/site/python3.6/twisted" failed with error code 1 in /tmp/pip-build-a54n37_z/twisted/


As You can see the Outputs are almost the same. How can I install Channels?










share|improve this question













I made virtualenv, new blank django project and I want to install Channels. I use Python 3.6.3. I typed pip install -U channels and this is OUTPUT:



...
Failed building wheel for twisted
...
Command "/home/marcin/Documents/django_projects/channels/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-ic8ux9ei/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-ox6bclm5-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/marcin/Documents/django_projects/channels/include/site/python3.6/twisted" failed with error code 1 in /tmp/pip-build-ic8ux9ei/twisted/


pip list OUTPUT:



...
Django (1.11.6)
...
pip (9.0.1)
...
setuptools (36.6.0)
...
wheel (0.29.0)
...


I see that I don't have Twisted, so I typed:pip install twisted. This is OUTPUT:



...
Failed building wheel for twisted
...
Command "/home/marcin/Documents/django_projects/channels/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-a54n37_z/twisted/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-9p23ehnv-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/marcin/Documents/django_projects/channels/include/site/python3.6/twisted" failed with error code 1 in /tmp/pip-build-a54n37_z/twisted/


As You can see the Outputs are almost the same. How can I install Channels?







python django wheel






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Oct 20 '17 at 20:03









gongarek

4216




4216












  • You might be missing a few packages that are installed using apt. Try sudo apt install python3.6-dev and then repeat the installation process for pip.
    – edwinksl
    Oct 20 '17 at 23:41












  • Sounds good; I will write an answer in case there are other people who face the same problem :)
    – edwinksl
    Oct 21 '17 at 8:54


















  • You might be missing a few packages that are installed using apt. Try sudo apt install python3.6-dev and then repeat the installation process for pip.
    – edwinksl
    Oct 20 '17 at 23:41












  • Sounds good; I will write an answer in case there are other people who face the same problem :)
    – edwinksl
    Oct 21 '17 at 8:54
















You might be missing a few packages that are installed using apt. Try sudo apt install python3.6-dev and then repeat the installation process for pip.
– edwinksl
Oct 20 '17 at 23:41






You might be missing a few packages that are installed using apt. Try sudo apt install python3.6-dev and then repeat the installation process for pip.
– edwinksl
Oct 20 '17 at 23:41














Sounds good; I will write an answer in case there are other people who face the same problem :)
– edwinksl
Oct 21 '17 at 8:54




Sounds good; I will write an answer in case there are other people who face the same problem :)
– edwinksl
Oct 21 '17 at 8:54










3 Answers
3






active

oldest

votes

















up vote
4
down vote



accepted










The error message is not particularly helpful but it seems you are missing the python3.6-dev package, which is installed using apt:



sudo apt update
sudo apt install python3.6-dev


After this, repeat your installation using pip as before.






share|improve this answer




























    up vote
    3
    down vote













    You also need to the build-essential package if it hasn't been installed already. The complete install command is:



    sudo apt-get install build-essential python3.6-dev





    share|improve this answer





















    • that was indeed my problem, according to my python version, 3.5
      – Leggy7
      Aug 2 at 20:27










    • I had installation problems related to rasa core on my Ubuntu machine. This fixed it. Thanks Steve.
      – Rajesh
      Aug 30 at 17:36


















    up vote
    0
    down vote













    Faced similar issue while installing rasa_core.



    Resolved issue in couple of steps:



    Step 1 : sudo apt-get update



    Step 2 : sudo apt-get install build-esssential pyhton3.6 dev



    Finally able to install rasa_core successfully.






    share|improve this answer

















    • 1




      Hello and welcome to AU. Please refrain from posting answers similar or equal to existing ones. Instead, upvote the one(s) that you solved the problem. This ensures future readers to easily get to the most satisfying answer instead of reading mutiple time the same story.
      – Marc Vanhoomissen
      Oct 11 at 11:01











    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: 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%2f966939%2ffailed-building-wheel-for-twisted%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    4
    down vote



    accepted










    The error message is not particularly helpful but it seems you are missing the python3.6-dev package, which is installed using apt:



    sudo apt update
    sudo apt install python3.6-dev


    After this, repeat your installation using pip as before.






    share|improve this answer

























      up vote
      4
      down vote



      accepted










      The error message is not particularly helpful but it seems you are missing the python3.6-dev package, which is installed using apt:



      sudo apt update
      sudo apt install python3.6-dev


      After this, repeat your installation using pip as before.






      share|improve this answer























        up vote
        4
        down vote



        accepted







        up vote
        4
        down vote



        accepted






        The error message is not particularly helpful but it seems you are missing the python3.6-dev package, which is installed using apt:



        sudo apt update
        sudo apt install python3.6-dev


        After this, repeat your installation using pip as before.






        share|improve this answer












        The error message is not particularly helpful but it seems you are missing the python3.6-dev package, which is installed using apt:



        sudo apt update
        sudo apt install python3.6-dev


        After this, repeat your installation using pip as before.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Oct 21 '17 at 8:55









        edwinksl

        16.5k115385




        16.5k115385
























            up vote
            3
            down vote













            You also need to the build-essential package if it hasn't been installed already. The complete install command is:



            sudo apt-get install build-essential python3.6-dev





            share|improve this answer





















            • that was indeed my problem, according to my python version, 3.5
              – Leggy7
              Aug 2 at 20:27










            • I had installation problems related to rasa core on my Ubuntu machine. This fixed it. Thanks Steve.
              – Rajesh
              Aug 30 at 17:36















            up vote
            3
            down vote













            You also need to the build-essential package if it hasn't been installed already. The complete install command is:



            sudo apt-get install build-essential python3.6-dev





            share|improve this answer





















            • that was indeed my problem, according to my python version, 3.5
              – Leggy7
              Aug 2 at 20:27










            • I had installation problems related to rasa core on my Ubuntu machine. This fixed it. Thanks Steve.
              – Rajesh
              Aug 30 at 17:36













            up vote
            3
            down vote










            up vote
            3
            down vote









            You also need to the build-essential package if it hasn't been installed already. The complete install command is:



            sudo apt-get install build-essential python3.6-dev





            share|improve this answer












            You also need to the build-essential package if it hasn't been installed already. The complete install command is:



            sudo apt-get install build-essential python3.6-dev






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered May 17 at 1:17









            Steve Rawlinson

            311




            311












            • that was indeed my problem, according to my python version, 3.5
              – Leggy7
              Aug 2 at 20:27










            • I had installation problems related to rasa core on my Ubuntu machine. This fixed it. Thanks Steve.
              – Rajesh
              Aug 30 at 17:36


















            • that was indeed my problem, according to my python version, 3.5
              – Leggy7
              Aug 2 at 20:27










            • I had installation problems related to rasa core on my Ubuntu machine. This fixed it. Thanks Steve.
              – Rajesh
              Aug 30 at 17:36
















            that was indeed my problem, according to my python version, 3.5
            – Leggy7
            Aug 2 at 20:27




            that was indeed my problem, according to my python version, 3.5
            – Leggy7
            Aug 2 at 20:27












            I had installation problems related to rasa core on my Ubuntu machine. This fixed it. Thanks Steve.
            – Rajesh
            Aug 30 at 17:36




            I had installation problems related to rasa core on my Ubuntu machine. This fixed it. Thanks Steve.
            – Rajesh
            Aug 30 at 17:36










            up vote
            0
            down vote













            Faced similar issue while installing rasa_core.



            Resolved issue in couple of steps:



            Step 1 : sudo apt-get update



            Step 2 : sudo apt-get install build-esssential pyhton3.6 dev



            Finally able to install rasa_core successfully.






            share|improve this answer

















            • 1




              Hello and welcome to AU. Please refrain from posting answers similar or equal to existing ones. Instead, upvote the one(s) that you solved the problem. This ensures future readers to easily get to the most satisfying answer instead of reading mutiple time the same story.
              – Marc Vanhoomissen
              Oct 11 at 11:01















            up vote
            0
            down vote













            Faced similar issue while installing rasa_core.



            Resolved issue in couple of steps:



            Step 1 : sudo apt-get update



            Step 2 : sudo apt-get install build-esssential pyhton3.6 dev



            Finally able to install rasa_core successfully.






            share|improve this answer

















            • 1




              Hello and welcome to AU. Please refrain from posting answers similar or equal to existing ones. Instead, upvote the one(s) that you solved the problem. This ensures future readers to easily get to the most satisfying answer instead of reading mutiple time the same story.
              – Marc Vanhoomissen
              Oct 11 at 11:01













            up vote
            0
            down vote










            up vote
            0
            down vote









            Faced similar issue while installing rasa_core.



            Resolved issue in couple of steps:



            Step 1 : sudo apt-get update



            Step 2 : sudo apt-get install build-esssential pyhton3.6 dev



            Finally able to install rasa_core successfully.






            share|improve this answer












            Faced similar issue while installing rasa_core.



            Resolved issue in couple of steps:



            Step 1 : sudo apt-get update



            Step 2 : sudo apt-get install build-esssential pyhton3.6 dev



            Finally able to install rasa_core successfully.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Oct 11 at 10:32









            neel

            1




            1








            • 1




              Hello and welcome to AU. Please refrain from posting answers similar or equal to existing ones. Instead, upvote the one(s) that you solved the problem. This ensures future readers to easily get to the most satisfying answer instead of reading mutiple time the same story.
              – Marc Vanhoomissen
              Oct 11 at 11:01














            • 1




              Hello and welcome to AU. Please refrain from posting answers similar or equal to existing ones. Instead, upvote the one(s) that you solved the problem. This ensures future readers to easily get to the most satisfying answer instead of reading mutiple time the same story.
              – Marc Vanhoomissen
              Oct 11 at 11:01








            1




            1




            Hello and welcome to AU. Please refrain from posting answers similar or equal to existing ones. Instead, upvote the one(s) that you solved the problem. This ensures future readers to easily get to the most satisfying answer instead of reading mutiple time the same story.
            – Marc Vanhoomissen
            Oct 11 at 11:01




            Hello and welcome to AU. Please refrain from posting answers similar or equal to existing ones. Instead, upvote the one(s) that you solved the problem. This ensures future readers to easily get to the most satisfying answer instead of reading mutiple time the same story.
            – Marc Vanhoomissen
            Oct 11 at 11:01


















            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2f966939%2ffailed-building-wheel-for-twisted%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

            數位音樂下載

            When can things happen in Etherscan, such as the picture below?

            格利澤436b