from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler #导入HTTP处理相关的模块
ModuleNotFoundError: No module named 'BaseHTTPServer'
这里是涉及到python3和python2的语法区别,我的pywebsocket是python2版本的,但是Python却是python3.0的版本。basehttpserver在python3中已经替换为http.server了,查看更多详细情况可以打开链接:
改成
from http.server import HTTPServer, BaseHTTPRequestHandler