ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
So I installed ROS using sudo apt-install directly following directions from the ROS tutorial.
Ok. That should install Python 2.7 (on Ubuntu 16.04) as well (if it wasn't already installed). All (well, most) ROS Python packages are only released for Python 2.
I was trying a virtual env with anaconda.
Ah. That will potentially complicate things. There are plenty of Q&A's on ROS Answers about Anaconda and the ROS Python packages.
If you're just starting out, you may want to focus on getting the basics working first, before trying to use 'alternative' Python interpreters.
I just decided it may be easier to setup a new VM with virtual box using Ubuntu 16.04. My end goal is to simply process rosbags from an AV using python.
I'm not sure what an 'AV' is, but I don't think you'll need to create a new virtual machine. Just remove Anaconda from your PATH
and use the system default python
(v2). That should work immediately.
2 | No.2 Revision |
So I installed ROS using sudo apt-install directly following directions from the ROS tutorial.
Ok. That should install Python 2.7 (on Ubuntu 16.04) as well (if it wasn't already installed). All (well, most) ROS Python packages are only released for Python 2.
I was trying a virtual env with anaconda.
Ah. That will potentially complicate things. There are plenty of Q&A's on ROS Answers about Anaconda and the ROS Python packages.
If you're just starting out, you may want to focus on getting the basics working first, before trying to use 'alternative' Python interpreters.
I just decided it may be easier to setup a new VM with virtual box using Ubuntu 16.04. My end goal is to simply process rosbags from an AV using python.
I'm not sure what an 'AV' is, but I don't think you'll need to create a new virtual machine. Just remove Anaconda from your PATH
and use the system default python
(v2). That should work immediately.
My question is now: if I start from scratch with a fresh install of Ubuntu, do I need to install python before ROS?
No. The Ubuntu package manager (apt
) will resolve those dependencies on its own. It'll install the regular Python 2 for you, if that isn't already present on your system.
Does the ROS full install include all the libraries I need to read from rosbags in python?
Typically, yes. Especially if you do a "desktop full" install.
I will be editing with sublime text.
The editor you'll be using does not influence any of this.
3 | No.3 Revision |
So I installed ROS using sudo apt-install directly following directions from the ROS tutorial.
Ok. That should install Python 2.7 (on Ubuntu 16.04) as well (if it wasn't already installed). All (well, most) ROS Python packages are only released for Python 2.
I was trying a virtual env with anaconda.
Ah. That will potentially complicate things. There are plenty of Q&A's on ROS Answers about Anaconda and the ROS Python packages.
If you're just starting out, you may want to focus on getting the basics working first, before trying to use 'alternative' Python interpreters.
I just decided it may be easier to setup a new VM with virtual box using Ubuntu 16.04. My end goal is to simply process rosbags from an AV using python.
I'm not sure what an 'AV' is, but I don't think you'll need to create a new virtual machine. Just remove Anaconda from your PATH
and use the system default python
(v2). That should work immediately.
My question is now: if I start from scratch with a fresh install of Ubuntu, do I need to install python before ROS?
No. The Ubuntu package manager (apt
) will resolve those dependencies on its own. It'll install the regular Python 2 for you, if that isn't already present on your system.
Does the ROS full install include all the libraries I need to read from rosbags in python?
Typically, yes. Especially if you do a "desktop full" install.
I will be editing with sublime text.
The editor you'll be using does not influence any of this.
set up a new environment with python 2.7.15 and reinstalled all dependencies (I think),
If with 'setup a new environment' you mean a new 'virtualenv' and with "(re)installed all dependencies" you mean you used pip
to install a nr of ROS Python pkgs then that can work, but you have to keep in mind that anything you install using pip
will not be automatically considered for updates whenever those are released (ie: your package manager (apt
) will not know those are installed). In general using pip
to install ROS Python packages is not something that is recommended on platforms where binaries are available (it does work though).