1464019230 发表于 2020-12-22 16:14:50

scrapy安装问题

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)


咋办?

昨非 发表于 2020-12-22 16:23:25

这不已经装好了吗?

1464019230 发表于 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: 找不到指定的程序。

1464019230 发表于 2020-12-22 16:24:56

昨非 发表于 2020-12-22 16:23
这不已经装好了吗?

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

昨非 发表于 2020-12-22 16:33:34

检查下你的安装路径,
可以命令行切到python安装目录下的scripts目录下再install

1464019230 发表于 2020-12-22 16:35:30

昨非 发表于 2020-12-22 16:33
检查下你的安装路径,
可以命令行切到python安装目录下的scripts目录下再install

好的,谢谢

昨非 发表于 2020-12-22 16:41:22

1464019230 发表于 2020-12-22 16:35
好的,谢谢

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

连个最佳都设不了{:10_249:}

1464019230 发表于 2020-12-22 16:42:04

昨非 发表于 2020-12-22 16:41
下次记得发成求助帖
才发现你这发的地方不对



好的,{:5_109:}

昨非 发表于 2020-12-22 16:46:57

1464019230 发表于 2020-12-22 16:42
好的,

你这可以
左下角重新【编辑】左上角【帖子类型】为【求助帖】,然后就可以设置最佳答案了
止个损,麻烦一下{:10_266:}

1464019230 发表于 2020-12-22 21:04:19

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

好像改不了,抱歉{:5_96:}

昨非 发表于 2020-12-22 21:12:32

1464019230 发表于 2020-12-22 21:04
好像改不了,抱歉

没事,小问题,下次记得选好类型就好{:10_297:}
页: [1]
查看完整版本: scrapy安装问题