Problem description:
The following error is reported when executing the python -m http.server command today
Traceback (most recent call last):
File "d:\software\python\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "d:\software\python\lib\runpy.py", line 85, in _run_code
exec(code, run_globals)
File "D:\SoftWare\python\Scripts\pip.exe__main__.py", line 5, in
After checking for a long time, the opinions of most bloggers on the Internet are like this: https://jingyan.baidu.com/article/6f2f55a19fad97f4b93e6c80.html
But the problem is still not solved. At this time, I thought that the version of python installed at that time was 3.7. I wondered if the version was too low, and then I replaced it with 3.9+. The problem was successfully solved. This is only for me. As for more detailed follow-up research