本来想练习一下slam 比赛, 结果没成想能巧成拙。 安装melodic for python3 on Ubuntu 18,老是报各种错误。 之前安装过melodic,没有什么问题, 并将教程跑了一下。主要是试图安装ros2, 导致了各种冲突。
着急之下,英文网上找了一个教程安装melodic for python3 on Ubuntu 18,当时也没有想,就照着做了。
不小心,讲之前安装的Python删除了。
这导致后来各种坑。
最后我只好重装python2.7.
装python3.7 的时候,出现pycompile-not-found, 搜到了这个网页,解决了python3.7安装问题。
主要是记录一下。
挖的大坑,填一多半,还有其他broken issues,需要修复。
。
Reconstruction of Python3 in Debian entails three critical things:
- Restoring
py3compile
script (for most of you, you already have this) - Restoring libpython3.7
- Restoring python binary
One could do the RE-copying of /usr[/local]/lib directory from another working Debian host/system. But this time, I shall detail the steps from within the broken host in questio