bash: ./miniedit.py: /usr/bin/python: interpreter error: no such file or directory
#! /usr/bin/python is
changed to #! /usr/bin/python3 can be solved.
Note: Treat the symptoms but not the root cause. There are also problems with the preservation of the subsequent topo structure. It is recommended to install ubuntu 16.04