Anaconda默认使用Python 3 而 ROS默认使用Python2,若同时使用二者则会在调用一些ros包时出现冲突。目前解决方案是先在.bashrc文件中注释掉Anaconda:
同时,在terminal中退出base环境:
conda deactivate
或者使用下述命令关闭或打开自动开启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.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)