鱼C论坛

 找回密码
 立即注册
查看: 2301|回复: 10

[技术交流] scrapy安装问题

[复制链接]
发表于 2020-12-22 16:14:50 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能^_^

您需要 登录 才可以下载或查看,没有账号?立即注册

x
Microsoft Windows [版本 10.0.18363.1256]
(c) 2019 Microsoft Corporation。保留所有权利。

C:\Users\star>pip install scrapy
Requirement already satisfied: scrapy in d:\program\python\lib\site-packages (2.4.1)
Requirement already satisfied: protego>=0.1.15 in d:\program\python\lib\site-packages (from scrapy) (0.1.16)
Requirement already satisfied: cryptography>=2.0 in d:\program\python\lib\site-packages (from scrapy) (3.3.1)
Requirement already satisfied: queuelib>=1.4.2 in d:\program\python\lib\site-packages (from scrapy) (1.5.0)
Requirement already satisfied: cssselect>=0.9.1 in d:\program\python\lib\site-packages (from scrapy) (1.1.0)
Requirement already satisfied: w3lib>=1.17.0 in d:\program\python\lib\site-packages (from scrapy) (1.22.0)
Requirement already satisfied: itemadapter>=0.1.0 in d:\program\python\lib\site-packages (from scrapy) (0.2.0)
Requirement already satisfied: itemloaders>=1.0.1 in d:\program\python\lib\site-packages (from scrapy) (1.0.4)
Requirement already satisfied: lxml>=3.5.0 in d:\program\python\lib\site-packages (from scrapy) (4.6.2)
Requirement already satisfied: Twisted>=17.9.0 in d:\program\python\lib\site-packages (from scrapy) (20.3.0)
Requirement already satisfied: pyOpenSSL>=16.2.0 in d:\program\python\lib\site-packages (from scrapy) (20.0.1)
Requirement already satisfied: service-identity>=16.0.0 in d:\program\python\lib\site-packages (from scrapy) (18.1.0)
Requirement already satisfied: zope.interface>=4.1.3 in d:\program\python\lib\site-packages (from scrapy) (5.2.0)
Requirement already satisfied: PyDispatcher>=2.0.5 in d:\program\python\lib\site-packages (from scrapy) (2.0.5)
Requirement already satisfied: parsel>=1.5.0 in d:\program\python\lib\site-packages (from scrapy) (1.6.0)
Requirement already satisfied: six>=1.4.1 in d:\program\python\lib\site-packages (from cryptography>=2.0->scrapy) (1.15.0)
Requirement already satisfied: cffi>=1.12 in d:\program\python\lib\site-packages (from cryptography>=2.0->scrapy) (1.14.4)
Requirement already satisfied: pycparser in d:\program\python\lib\site-packages (from cffi>=1.12->cryptography>=2.0->scrapy) (2.20)
Requirement already satisfied: jmespath>=0.9.5 in d:\program\python\lib\site-packages (from itemloaders>=1.0.1->scrapy) (0.10.0)
Requirement already satisfied: attrs>=16.0.0 in d:\program\python\lib\site-packages (from service-identity>=16.0.0->scrapy) (20.3.0)
Requirement already satisfied: pyasn1 in d:\program\python\lib\site-packages (from service-identity>=16.0.0->scrapy) (0.4.8)
Requirement already satisfied: pyasn1-modules in d:\program\python\lib\site-packages (from service-identity>=16.0.0->scrapy) (0.2.8)
Requirement already satisfied: Automat>=0.3.0 in d:\program\python\lib\site-packages (from Twisted>=17.9.0->scrapy) (20.2.0)
Requirement already satisfied: incremental>=16.10.1 in d:\program\python\lib\site-packages (from Twisted>=17.9.0->scrapy) (17.5.0)
Requirement already satisfied: constantly>=15.1 in d:\program\python\lib\site-packages (from Twisted>=17.9.0->scrapy) (15.1.0)
Requirement already satisfied: PyHamcrest!=1.10.0,>=1.9.0 in d:\program\python\lib\site-packages (from Twisted>=17.9.0->scrapy) (2.0.2)
Requirement already satisfied: hyperlink>=17.1.1 in d:\program\python\lib\site-packages (from Twisted>=17.9.0->scrapy) (20.0.1)
Requirement already satisfied: idna>=2.5 in d:\program\python\lib\site-packages (from hyperlink>=17.1.1->Twisted>=17.9.0->scrapy) (2.10)
Requirement already satisfied: setuptools in d:\program\python\lib\site-packages (from zope.interface>=4.1.3->scrapy) (41.2.0)


咋办?
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

发表于 2020-12-22 16:23:25 | 显示全部楼层
这不已经装好了吗?

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-12-22 16:24:13 | 显示全部楼层
C:\Users\star>scrapy
Traceback (most recent call last):
  File "d:\program\python\lib\runpy.py", line 193, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "d:\program\python\lib\runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "D:\Program\Python\Scripts\scrapy.exe\__main__.py", line 4, in <module>
  File "d:\program\python\lib\site-packages\scrapy\__init__.py", line 12, in <module>
    from scrapy.spiders import Spider
  File "d:\program\python\lib\site-packages\scrapy\spiders\__init__.py", line 11, in <module>
    from scrapy.http import Request
  File "d:\program\python\lib\site-packages\scrapy\http\__init__.py", line 11, in <module>
    from scrapy.http.request.form import FormRequest
  File "d:\program\python\lib\site-packages\scrapy\http\request\form.py", line 10, in <module>
    import lxml.html
  File "d:\program\python\lib\site-packages\lxml\html\__init__.py", line 53, in <module>
    from .. import etree
ImportError: DLL load failed while importing etree: 找不到指定的程序。
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-12-22 16:24:56 | 显示全部楼层
昨非 发表于 2020-12-22 16:23
这不已经装好了吗?

没有
C:\Users\star>scrapy
ImportError: DLL load failed while importing etree: 找不到指定的程序。

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-12-22 16:33:34 | 显示全部楼层
检查下你的安装路径,
可以命令行切到python安装目录下的scripts目录下再install
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-12-22 16:35:30 | 显示全部楼层
昨非 发表于 2020-12-22 16:33
检查下你的安装路径,
可以命令行切到python安装目录下的scripts目录下再install

好的,谢谢
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-12-22 16:41:22 | 显示全部楼层

下次记得发成求助帖
才发现你这发的地方不对

连个最佳都设不了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

 楼主| 发表于 2020-12-22 16:42:04 | 显示全部楼层
昨非 发表于 2020-12-22 16:41
下次记得发成求助帖
才发现你这发的地方不对

好的,
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-12-22 16:46:57 | 显示全部楼层

你这可以
左下角重新【编辑】左上角【帖子类型】为【求助帖】,然后就可以设置最佳答案了
止个损,麻烦一下
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 1 反对 0

使用道具 举报

 楼主| 发表于 2020-12-22 21:04:19 | 显示全部楼层
昨非 发表于 2020-12-22 16:46
你这可以
左下角重新【编辑】左上角【帖子类型】为【求助帖】,然后就可以设置最佳答案了
止个损,麻烦 ...

好像改不了,抱歉
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

发表于 2020-12-22 21:12:32 | 显示全部楼层
1464019230 发表于 2020-12-22 21:04
好像改不了,抱歉

没事,小问题,下次记得选好类型就好
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2025-1-17 00:55

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表