python 模块web.py安装出现错误,求大牛帮助
importutils,db,net,wsgi,http,webapi,httpserver,debugerrorFile"C:\Users\Administrator\...
import utils, db, net, wsgi, http, webapi, httpserver, debugerror
File "C:\Users\Administrator\Desktop\web\wsgi.py", line 12, in <module>
[Finished in 0.8s with exit code 1] import httpserver
File "C:\Users\Administrator\Desktop\web\httpserver.py", line 4, in <module>
from SimpleHTTPServer import SimpleHTTPRequestHandler
File "C:\Python27\lib\SimpleHTTPServer.py", line 27, in <module>
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
File "C:\Python27\lib\SimpleHTTPServer.py", line 208, in SimpleHTTPRequestHandler
mimetypes.init() # try to read system mime.types
File "C:\Python27\lib\mimetypes.py", line 358, in init
db.read_windows_registry()
File "C:\Python27\lib\mimetypes.py", line 258, in read_windows_registry
for subkeyname in enum_types(hkcr):
File "C:\Python27\lib\mimetypes.py", line 249, in enum_types
ctype = ctype.encode(default_encoding) # omit in 3.x!
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 1: invalid start byte 展开
File "C:\Users\Administrator\Desktop\web\wsgi.py", line 12, in <module>
[Finished in 0.8s with exit code 1] import httpserver
File "C:\Users\Administrator\Desktop\web\httpserver.py", line 4, in <module>
from SimpleHTTPServer import SimpleHTTPRequestHandler
File "C:\Python27\lib\SimpleHTTPServer.py", line 27, in <module>
class SimpleHTTPRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
File "C:\Python27\lib\SimpleHTTPServer.py", line 208, in SimpleHTTPRequestHandler
mimetypes.init() # try to read system mime.types
File "C:\Python27\lib\mimetypes.py", line 358, in init
db.read_windows_registry()
File "C:\Python27\lib\mimetypes.py", line 258, in read_windows_registry
for subkeyname in enum_types(hkcr):
File "C:\Python27\lib\mimetypes.py", line 249, in enum_types
ctype = ctype.encode(default_encoding) # omit in 3.x!
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 1: invalid start byte 展开
1个回答
展开全部
第一:环境变量的设置,是否正确
第二:是否安装过这个包
第三:包的引用是否正确
第四:打开安装路径看一下
第二:是否安装过这个包
第三:包的引用是否正确
第四:打开安装路径看一下
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
浙江启扬智能科技有限公司
2023-08-23 广告
2023-08-23 广告
作为浙江启扬智能科技有限公司的工作人员,回答如下:ARM开发板通常使用Linux系统,这是因为Linux在嵌入式系统开发中有着广泛的应用和丰富的资源。在Linux环境下开发可以更好地支持ARM架构,并且Linux具有强大的工具链和开源的软件...
点击进入详情页
本回答由浙江启扬智能科技有限公司提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询