Can't "import Urllib.request, Urllib.parse, Urllib.error"
I trying to convert my project to python3. My server script is server.py: #!/usr/bin/env python #-*-coding:utf8-*- import http.server import os, sys server = http.server.HTTPServe
Solution 1:
Your shebang suggests that code should be run by python
binary, which is historically associated with Python 2.x releases.
Simply change first line to:
#!/usr/bin/env python3
Post a Comment for "Can't "import Urllib.request, Urllib.parse, Urllib.error""