windows下安装pywin32报错:close failed in file object destructor:s

时间:2021-11-26 22:19:07

今晚要写搜索引擎作业,,搭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:s

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

3. 运行python pywin32_postinstall.py -install

windows下安装pywin32报错:close failed in file object destructor:s

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

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