Install imutils within ROS
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
add a comment |
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
add a comment |
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
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
python pip python-3.5 ros imutils
edited Nov 13 '18 at 20:55
Benyamin Jafari
2,87132038
2,87132038
asked Nov 13 '18 at 12:16
gkapellmanngkapellmann
125115
125115
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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).
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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).
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
add a comment |
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).
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
add a comment |
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).
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).
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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