Install imutils within ROS










0















I have an Ubuntu 16.04 OS with ROS kinetic.



When I open a terminal and type python it loads python 2.7, and as I try to import imutils it says it's not there.



Then, I tried to install it with pip install imutils, but it says: requirment already satisfied in bla/bla/python3.5/bla.



If I open the terminal and type python3, it loads Python 3.5, and when I try to import that lib, it complaints that it can't find cv2, and gives an address pointing to where the Python ROS package is located (Python 2.7).



Up to this point, it makes sense to me (I am aware of the .bashrc loading the ROS packages), but then, how can I install imutils in the Python version of ROS? I want to use the compatible imutils with my ROS Kinetic.










share|improve this question




























    0















    I have an Ubuntu 16.04 OS with ROS kinetic.



    When I open a terminal and type python it loads python 2.7, and as I try to import imutils it says it's not there.



    Then, I tried to install it with pip install imutils, but it says: requirment already satisfied in bla/bla/python3.5/bla.



    If I open the terminal and type python3, it loads Python 3.5, and when I try to import that lib, it complaints that it can't find cv2, and gives an address pointing to where the Python ROS package is located (Python 2.7).



    Up to this point, it makes sense to me (I am aware of the .bashrc loading the ROS packages), but then, how can I install imutils in the Python version of ROS? I want to use the compatible imutils with my ROS Kinetic.










    share|improve this question


























      0












      0








      0


      1






      I have an Ubuntu 16.04 OS with ROS kinetic.



      When I open a terminal and type python it loads python 2.7, and as I try to import imutils it says it's not there.



      Then, I tried to install it with pip install imutils, but it says: requirment already satisfied in bla/bla/python3.5/bla.



      If I open the terminal and type python3, it loads Python 3.5, and when I try to import that lib, it complaints that it can't find cv2, and gives an address pointing to where the Python ROS package is located (Python 2.7).



      Up to this point, it makes sense to me (I am aware of the .bashrc loading the ROS packages), but then, how can I install imutils in the Python version of ROS? I want to use the compatible imutils with my ROS Kinetic.










      share|improve this question
















      I have an Ubuntu 16.04 OS with ROS kinetic.



      When I open a terminal and type python it loads python 2.7, and as I try to import imutils it says it's not there.



      Then, I tried to install it with pip install imutils, but it says: requirment already satisfied in bla/bla/python3.5/bla.



      If I open the terminal and type python3, it loads Python 3.5, and when I try to import that lib, it complaints that it can't find cv2, and gives an address pointing to where the Python ROS package is located (Python 2.7).



      Up to this point, it makes sense to me (I am aware of the .bashrc loading the ROS packages), but then, how can I install imutils in the Python version of ROS? I want to use the compatible imutils with my ROS Kinetic.







      python pip python-3.5 ros imutils






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 13 '18 at 20:55









      Benyamin Jafari

      2,87132038




      2,87132038










      asked Nov 13 '18 at 12:16









      gkapellmanngkapellmann

      125115




      125115






















          1 Answer
          1






          active

          oldest

          votes


















          3














          Your problem is that your pip is set to Python 3.5.



          So, you can bypass it using pip2 instead:



          pip2 install imutils


          or



          sudo pip2 install imutils



          [NOTE]:



          Check your pip s link to Python versions assignment:



          pip --version
          pip2 --version
          pip3 --version
          sudo pip --version
          sudo pip2 --version
          sudo pip3 --version


          Then choose the desired Python version which assigned to these pip or you can change the pip s link address (a relevant post).






          share|improve this answer

























          • Thank you @Benyamin, this makes a lot of sense. I got a problem though, when I type pip2 it throws me an error, AttributeError: 'module' object has no attribute 'SSL_ST_INIT'. I tryed reinstalling pip2.7, that is located in the correct folder, but sends a similar error. Any idea what is happening?

            – gkapellmann
            Nov 14 '18 at 11:02






          • 1





            I found the solution, I had to reinstall pyOpenSSL, but as pip2 wouldnt work I had to use "sudo python -, easy_install --upgrade puOpenSSL" and this did the trick. Thank you for your help!

            – gkapellmann
            Nov 14 '18 at 11:15










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          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%2fstackoverflow.com%2fquestions%2f53280841%2finstall-imutils-within-ros%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









          3














          Your problem is that your pip is set to Python 3.5.



          So, you can bypass it using pip2 instead:



          pip2 install imutils


          or



          sudo pip2 install imutils



          [NOTE]:



          Check your pip s link to Python versions assignment:



          pip --version
          pip2 --version
          pip3 --version
          sudo pip --version
          sudo pip2 --version
          sudo pip3 --version


          Then choose the desired Python version which assigned to these pip or you can change the pip s link address (a relevant post).






          share|improve this answer

























          • Thank you @Benyamin, this makes a lot of sense. I got a problem though, when I type pip2 it throws me an error, AttributeError: 'module' object has no attribute 'SSL_ST_INIT'. I tryed reinstalling pip2.7, that is located in the correct folder, but sends a similar error. Any idea what is happening?

            – gkapellmann
            Nov 14 '18 at 11:02






          • 1





            I found the solution, I had to reinstall pyOpenSSL, but as pip2 wouldnt work I had to use "sudo python -, easy_install --upgrade puOpenSSL" and this did the trick. Thank you for your help!

            – gkapellmann
            Nov 14 '18 at 11:15















          3














          Your problem is that your pip is set to Python 3.5.



          So, you can bypass it using pip2 instead:



          pip2 install imutils


          or



          sudo pip2 install imutils



          [NOTE]:



          Check your pip s link to Python versions assignment:



          pip --version
          pip2 --version
          pip3 --version
          sudo pip --version
          sudo pip2 --version
          sudo pip3 --version


          Then choose the desired Python version which assigned to these pip or you can change the pip s link address (a relevant post).






          share|improve this answer

























          • Thank you @Benyamin, this makes a lot of sense. I got a problem though, when I type pip2 it throws me an error, AttributeError: 'module' object has no attribute 'SSL_ST_INIT'. I tryed reinstalling pip2.7, that is located in the correct folder, but sends a similar error. Any idea what is happening?

            – gkapellmann
            Nov 14 '18 at 11:02






          • 1





            I found the solution, I had to reinstall pyOpenSSL, but as pip2 wouldnt work I had to use "sudo python -, easy_install --upgrade puOpenSSL" and this did the trick. Thank you for your help!

            – gkapellmann
            Nov 14 '18 at 11:15













          3












          3








          3







          Your problem is that your pip is set to Python 3.5.



          So, you can bypass it using pip2 instead:



          pip2 install imutils


          or



          sudo pip2 install imutils



          [NOTE]:



          Check your pip s link to Python versions assignment:



          pip --version
          pip2 --version
          pip3 --version
          sudo pip --version
          sudo pip2 --version
          sudo pip3 --version


          Then choose the desired Python version which assigned to these pip or you can change the pip s link address (a relevant post).






          share|improve this answer















          Your problem is that your pip is set to Python 3.5.



          So, you can bypass it using pip2 instead:



          pip2 install imutils


          or



          sudo pip2 install imutils



          [NOTE]:



          Check your pip s link to Python versions assignment:



          pip --version
          pip2 --version
          pip3 --version
          sudo pip --version
          sudo pip2 --version
          sudo pip3 --version


          Then choose the desired Python version which assigned to these pip or you can change the pip s link address (a relevant post).







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Nov 14 '18 at 11:29

























          answered Nov 13 '18 at 20:48









          Benyamin JafariBenyamin Jafari

          2,87132038




          2,87132038












          • Thank you @Benyamin, this makes a lot of sense. I got a problem though, when I type pip2 it throws me an error, AttributeError: 'module' object has no attribute 'SSL_ST_INIT'. I tryed reinstalling pip2.7, that is located in the correct folder, but sends a similar error. Any idea what is happening?

            – gkapellmann
            Nov 14 '18 at 11:02






          • 1





            I found the solution, I had to reinstall pyOpenSSL, but as pip2 wouldnt work I had to use "sudo python -, easy_install --upgrade puOpenSSL" and this did the trick. Thank you for your help!

            – gkapellmann
            Nov 14 '18 at 11:15

















          • Thank you @Benyamin, this makes a lot of sense. I got a problem though, when I type pip2 it throws me an error, AttributeError: 'module' object has no attribute 'SSL_ST_INIT'. I tryed reinstalling pip2.7, that is located in the correct folder, but sends a similar error. Any idea what is happening?

            – gkapellmann
            Nov 14 '18 at 11:02






          • 1





            I found the solution, I had to reinstall pyOpenSSL, but as pip2 wouldnt work I had to use "sudo python -, easy_install --upgrade puOpenSSL" and this did the trick. Thank you for your help!

            – gkapellmann
            Nov 14 '18 at 11:15
















          Thank you @Benyamin, this makes a lot of sense. I got a problem though, when I type pip2 it throws me an error, AttributeError: 'module' object has no attribute 'SSL_ST_INIT'. I tryed reinstalling pip2.7, that is located in the correct folder, but sends a similar error. Any idea what is happening?

          – gkapellmann
          Nov 14 '18 at 11:02





          Thank you @Benyamin, this makes a lot of sense. I got a problem though, when I type pip2 it throws me an error, AttributeError: 'module' object has no attribute 'SSL_ST_INIT'. I tryed reinstalling pip2.7, that is located in the correct folder, but sends a similar error. Any idea what is happening?

          – gkapellmann
          Nov 14 '18 at 11:02




          1




          1





          I found the solution, I had to reinstall pyOpenSSL, but as pip2 wouldnt work I had to use "sudo python -, easy_install --upgrade puOpenSSL" and this did the trick. Thank you for your help!

          – gkapellmann
          Nov 14 '18 at 11:15





          I found the solution, I had to reinstall pyOpenSSL, but as pip2 wouldnt work I had to use "sudo python -, easy_install --upgrade puOpenSSL" and this did the trick. Thank you for your help!

          – gkapellmann
          Nov 14 '18 at 11:15

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • 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%2fstackoverflow.com%2fquestions%2f53280841%2finstall-imutils-within-ros%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







          這個網誌中的熱門文章

          How to read a connectionString WITH PROVIDER in .NET Core?

          In R, how to develop a multiplot heatmap.2 figure showing key labels successfully

          Museum of Modern and Contemporary Art of Trento and Rovereto