首页 > 代码库 > windows下安装pywin32报错:close failed in file object destructor:sys.excepthook is missing lost sys.stderr

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命令提示符:

技术分享

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