Anaconda默认使用Python 3 而 ROS默认使用Python2,若同时使用二者则会在调用一些ros包时出现冲突。目前解决方案是先在.bashrc文件中注释掉Anaconda:
# export PATH=/usr/bin/anaconda/bin:$PATH
同时,在terminal中退出base环境:
conda deactivate
或者使用下述命令关闭或打开自动开启base环境的设置:
# 关闭自动打开base的设置 conda config --set auto_activate_base false # 打开 conda config --set auto_activate_base true
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.