Thank you for your reply. It is indeed a problem with the virtual environment installed by octoprint. My TV box uses ubuntu18.04.4LTS, and its own python is pyhton3.6.9. Now I upgraded it to 20.04LTS python version automatically upgraded to 3.8.10. Then I successfully installed octoprint 1.8.1.
I have a question. It turns out that the system python version is low. I manually installed the latest python3.10.4, and even manually specifying the latest version when building the octoprint installation environment, still cannot install the latest octoprint smoothly.
Although now I upgrade the system of the TV box, I can install the latest octoprint1.8.1, but it needs to be reinstalled, which is too troublesome. I just want to find easy way to upgrade directly from octoprint1.7.3 to 1.8.1