windows下安装pywin32报错:close failed in file object destructor:sys.excepthook is missing lost sys.stderr

今晚要写搜索引擎作业,搭scrapy环境,遇到了下面问题:

windows下安装pywin32报错:close failed in file object destructor:sys.excepthook is missing lost sys.stderr

解决方法:

1.右键管理员身份运行cmd命令提示符:

windows下安装pywin32报错:close failed in file object destructor:sys.excepthook is missing lost sys.stderr

2. 切换到C:\Python27\Scripts文件夹下,命令为:cd C:\Python27\Scripts

3. 运行python pywin32_postinstall.py -install

windows下安装pywin32报错:close failed in file object destructor:sys.excepthook is missing lost sys.stderr

提示成功安装。问题解决。

上一篇:window下安装redis报错: creating server tcp listening socket 127.0.0.1:6379: bind No error


下一篇:Java线程之CompletionService批处理任务