|
50鱼币
- PS C:\Users\misaka\Desktop> pip install scrapy
- Collecting scrapy
- Using cached Scrapy-2.8.0-py2.py3-none-any.whl (272 kB)
- Collecting Twisted>=18.9.0
- Using cached Twisted-22.10.0-py3-none-any.whl (3.1 MB)
- Collecting cryptography>=3.4.6
- Using cached cryptography-39.0.0-cp36-abi3-win_amd64.whl (2.5 MB)
- Collecting cssselect>=0.9.1
- Using cached cssselect-1.2.0-py2.py3-none-any.whl (18 kB)
- Collecting itemloaders>=1.0.1
- Using cached itemloaders-1.0.6-py3-none-any.whl (11 kB)
- Collecting parsel>=1.5.0
- Using cached parsel-1.7.0-py2.py3-none-any.whl (14 kB)
- Collecting pyOpenSSL>=21.0.0
- Using cached pyOpenSSL-23.0.0-py3-none-any.whl (57 kB)
- Collecting queuelib>=1.4.2
- Using cached queuelib-1.6.2-py2.py3-none-any.whl (13 kB)
- Collecting service-identity>=18.1.0
- Using cached service_identity-21.1.0-py2.py3-none-any.whl (12 kB)
- Collecting w3lib>=1.17.0
- Using cached w3lib-2.1.1-py3-none-any.whl (21 kB)
- Collecting zope.interface>=5.1.0
- Using cached zope.interface-5.5.2-cp311-cp311-win_amd64.whl (211 kB)
- Collecting protego>=0.1.15
- Using cached Protego-0.2.1-py2.py3-none-any.whl (8.2 kB)
- Collecting itemadapter>=0.1.0
- Using cached itemadapter-0.7.0-py3-none-any.whl (10 kB)
- Requirement already satisfied: setuptools in c:\users\misaka\appdata\local\programs\python\python311\lib\site-packages (from scrapy) (65.5.0)
- Requirement already satisfied: packaging in c:\users\misaka\appdata\local\programs\python\python311\lib\site-packages (from scrapy) (22.0)
- Collecting tldextract
- Using cached tldextract-3.4.0-py3-none-any.whl (93 kB)
- Requirement already satisfied: lxml>=4.3.0 in c:\users\misaka\appdata\local\programs\python\python311\lib\site-packages (from scrapy) (4.9.2)
- Collecting PyDispatcher>=2.0.5
- Using cached PyDispatcher-2.0.6.tar.gz (38 kB)
- Preparing metadata (setup.py) ... done
- Collecting cffi>=1.12
- Using cached cffi-1.15.1-cp311-cp311-win_amd64.whl (179 kB)
- Collecting jmespath>=0.9.5
- Using cached jmespath-1.0.1-py3-none-any.whl (20 kB)
- Requirement already satisfied: six in c:\users\misaka\appdata\local\programs\python\python311\lib\site-packages (from protego>=0.1.15->scrapy) (1.16.0)
- Collecting attrs>=19.1.0
- Using cached attrs-22.2.0-py3-none-any.whl (60 kB)
- Collecting pyasn1-modules
- Using cached pyasn1_modules-0.2.8-py2.py3-none-any.whl (155 kB)
- Collecting pyasn1
- Using cached pyasn1-0.4.8-py2.py3-none-any.whl (77 kB)
- Collecting constantly>=15.1
- Using cached constantly-15.1.0-py2.py3-none-any.whl (7.9 kB)
- Collecting incremental>=21.3.0
- Using cached incremental-22.10.0-py2.py3-none-any.whl (16 kB)
- Collecting Automat>=0.8.0
- Using cached Automat-22.10.0-py2.py3-none-any.whl (26 kB)
- Collecting hyperlink>=17.1.1
- Using cached hyperlink-21.0.0-py2.py3-none-any.whl (74 kB)
- Collecting typing-extensions>=3.6.5
- Using cached typing_extensions-4.4.0-py3-none-any.whl (26 kB)
- Collecting twisted-iocpsupport<2,>=1.0.2
- Using cached twisted-iocpsupport-1.0.2.tar.gz (10 kB)
- Installing build dependencies ... done
- Getting requirements to build wheel ... done
- Preparing metadata (pyproject.toml) ... done
- Requirement already satisfied: idna in c:\users\misaka\appdata\local\programs\python\python311\lib\site-packages (from tldextract->scrapy) (3.4)
- Requirement already satisfied: requests>=2.1.0 in c:\users\misaka\appdata\local\programs\python\python311\lib\site-packages (from tldextract->scrapy) (2.28.2)
- Collecting requests-file>=1.4
- Using cached requests_file-1.5.1-py2.py3-none-any.whl (3.7 kB)
- Requirement already satisfied: filelock>=3.0.8 in c:\users\misaka\appdata\local\programs\python\python311\lib\site-packages (from tldextract->scrapy) (3.9.0)
- Collecting pycparser
- Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
- Requirement already satisfied: charset-normalizer<4,>=2 in c:\users\misaka\appdata\local\programs\python\python311\lib\site-packages (from requests>=2.1.0->tldextract->scrapy) (3.0.1)
- Requirement already satisfied: urllib3<1.27,>=1.21.1 in c:\users\misaka\appdata\local\programs\python\python311\lib\site-packages (from requests>=2.1.0->tldextract->scrapy) (1.26.14)
- Requirement already satisfied: certifi>=2017.4.17 in c:\users\misaka\appdata\local\programs\python\python311\lib\site-packages (from requests>=2.1.0->tldextract->scrapy) (2022.12.7)
- Building wheels for collected packages: twisted-iocpsupport
- Building wheel for twisted-iocpsupport (pyproject.toml) ... error
- error: subprocess-exited-with-error
- × Building wheel for twisted-iocpsupport (pyproject.toml) did not run successfully.
- │ exit code: 1
- ╰─> [5 lines of output]
- running bdist_wheel
- running build
- running build_ext
- building 'twisted_iocpsupport.iocpsupport' extension
- error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
- [end of output]
- note: This error originates from a subprocess, and is likely not a problem with pip.
- ERROR: Failed building wheel for twisted-iocpsupport
- Failed to build twisted-iocpsupport
- ERROR: Could not build wheels for twisted-iocpsupport, which is required to install pyproject.toml-based projects
复制代码
|
最佳答案
查看完整内容
scrapy 的依赖库 twisted 在安装的过程中是需要编译的,你没有编译环境,所以安装失败了
解决方法有两种:
第一种方法: 安装编译环境
第二种方法:下载编译好的,这篇文章有说明 https://www.cnblogs.com/jinghun/p/9092984.html
|