-
Notifications
You must be signed in to change notification settings - Fork 764
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to make ROS and anaconda work on Ubuntu at the same time #149
Comments
This is great information for anaconda users. This issue is probably not the best location for others to find out about it. Please consider to add the information to the ROS wiki (where ever you think it is most appropriate) and post a link here. |
@ramadawn As mentioned in the previous comment the issue tracker in this repo is used to track bugs, feature requests, etc. But this ticket is not such an action item. Therefore I will close it for now. Please consider contributing to the wiki if you think this information should be more visible to users. |
Thanks I already updated the ROS wiki to describe a solution to the problem. |
I wrote a script that handles the ROS + Anaconda conflict a tad more convenient which can be found here: It works by creating aliases for all executables provided by anaconda that aren't present on the system already (so I'm not sure if it would work with a global install in /usr/bin). Whenever one of these executables is called, the script adds Anaconda to the path, removes ROS from the PYTHONPATH, executes the command and afterwards removes anaconda from the path again. This, of course, also works with |
Thank you ramadawn, I am still getting an error when I catkin_make, even though I removed this line from .bashrc Note I have installed anaconda globally in /opt/ for all the users. Thank you |
What error do you get? |
I have my PS3 set to show which Anaconda environment I am in. By default it shows 'base'. If I just run 'conda deactivate', I can check that the anaconda prefix is indeed removed from PATH. This may not work with older versions of Anaconda. |
For future reference, I wrote a small installable wrapper based on the code of @StefanFabian. It can be found here. |
It is now also possible to install ROS packages directly (natively) in a conda environment: https://github.com/RoboStack/ros-noetic & https://medium.com/robostack/cross-platform-conda-packages-for-ros-fa1974fd1de3 |
@Tobias-Fischer Thanks for updating me on the fact that ROS-Noetic is not fully working inside a Conda environment. I will add it as the default in my wrapper might people want to use it alongside the desktop ROS version. |
Hi @rickstaa! That would be interesting indeed. However with the Robostack ROS conda packages, there should not be need for a wrapper anymore. The only thing that needs doing if a system ROS is also installed is |
@Tobias-Fischer Thanks for the updates. That's amazing to hear. I will test it out later this month and add a deprecation warning to the wrapper pointing to your packages. |
Typically I have found that ROS will interfere with an installation of anaconda on Ubuntu (or vice versa).
The way to resolve this problem is to comment out the line:
`export PATH=/usr/bin/anaconda/bin:$PATH' in your BASHRC file.
Then when you need to run anaconda-navigator:
1.open a terminal
Type: export PATH=/usr/bin/anaconda/bin:$PATH
and then activate anaconda navigator by typing:
` anaconda-navigator
This will allow you to use ROS and anaconda on the same install.
The text was updated successfully, but these errors were encountered: