shadfien / python_opencv

opencv问题
0 stars 0 forks source link

第一天安装完Ros第二进不去环境了,Command 'roscore' not found, but can be installed with: sudo apt install python-roslaunch #10

Open shadfien opened 3 years ago

shadfien commented 3 years ago

跟这个blog如出一辙,尝试中…… https://blog.csdn.net/qq_37844635/article/details/83784538

关于ros-kinetic-desktop-full依赖: ros-kinetic-simulators 但是它将不会被安装"报错的解决办法 https://blog.csdn.net/qq_41628231/article/details/81046548

shadfien commented 3 years ago

到这一步报错了 make -j8 && make install

报错内容 Install the project... -- Install configuration: "" CMake Error at cmake_install.cmake:46 (file): file failed to open for writing (Permission denied):

/usr/local/.catkin

Makefile:94: recipe for target

shadfien commented 3 years ago

接着说坑 这一步报错后,分别执行sudo make -j8 和sudo make install就好了,后边cd...意思我觉得应该是退到catkin文件夹里面吧。

测试到最后一句话结果失败了,报错

ricardo@ricardo-HP-340-G4:~/catkin$ python3 setup.py install Traceback (most recent call last): File "setup.py", line 1, in <module> from catkin_pkg.python_setup import generate_distutils_setup ModuleNotFoundError: No module named 'catkin_pkg'

shadfien commented 3 years ago

然后继续说坑 ,按照如下blog执行了,还是不行。。虽然问题描述一样,但就是不办事。 https://blog.csdn.net/qq_39346534/article/details/107594072

shadfien commented 3 years ago

终于解决了,上边说的都不办事,可能是我Python版本的问题导致的,目前我的python版本为2.7.17,然后roscore执行失败后只需要执行一句话即可

/usr/bin/python 链接指向python3或者anaconda环境的python导致

sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2

更改链接即可

shadfien commented 2 years ago

更新新的解决方案 https://www.freesion.com/article/66741079015/ 不小心手贱应该是卸载了,然后出现了还是标题的问题,然后之前的方案都不行,按照这个方案,虽然中间好几个报错。。但是最后能用了。。先用着吧·。