I am trying to follow Example 20.17.4.1. SocketServer.TCPServer from Python Docs. But I get an error:
ImportError: No module named \'ServerSocket\'
>
In the code I have It already tried importing SocketServer and socketserver but neither work.
try:
import SocketServer as socketserver
from BaseHTTPServer import HTTPServer, BaseHTTPRequestHandler
except ImportError:
import socketserver
from http.server import HTTPServer, BaseHTTPRequestHandler
However after I can this command it worked for me
$pip install Werkzeug --upgrade