安装 python 包 scrapy 时出现错误

问题描述 投票:0回答:2

我正在尝试安装 scrapy 以在 python 中进行网页抓取。但出现错误。

Using cached PyDispatcher-2.0.6.tar.gz (38 kB)
ERROR: Error [WinError 225] Operation did not complete successfully because the file contains a 
virus or potentially unwanted software while executing command python setup.py egg_info
Preparing metadata (setup.py) ... error
ERROR: Could not install packages due to an OSError: [WinError 225] Operation did not complete 
successfully because the file contains a virus or potentially unwanted software
python scrapy
2个回答
0
投票

您是如何尝试安装它的?

pip install scrapy
应该可以工作。


0
投票

这只是一个防病毒问题,阻止它安装某些软件包,例如

scrapy

您可以关闭防病毒软件或观看此视频以打开病毒和威胁防护(在 Windows 中) https://www.youtube.com/watch?v=_0_A9D0JeVo

© www.soinside.com 2019 - 2024. All rights reserved.