目录
一、说明
如果您的系统安装了anaconda,同时也安装了ROS,如何协调它们的环境,因为ROS安装后,默认要安装一个python而非anaconda,如何处理?
二、现场问题提出
2.1 开始编译一次工作空间,
$ catkin_make 它就报错了:
CMake Error at /opt/ros/noetic/share/catkin/cmake/empy.cmake:30 (message):
Unable to find either executable 'empy' or Python module 'em'... try
installing the package 'python3-empy'
2.2 现场问题分析
在ubuntu系统中,存在两个python;python2.7和python3.8(注意这两个版本不可删除,否则OS系统瘫痪);又装了一个anaconda后,出现了第三个版本的python3.9.
因此系统中三个版本python:
- python2.7
- python3.8
- anaconda/lib/bin/python3.9
他们的环境别名是:(/usr/bin中见到的软连接)