python3.7 安装 scrapy, pip 升级

本文介绍了如何在Python3.7环境下安装Scrapy爬虫框架,首先通过`python -m ensurepip`确保pip的安装,接着使用`pip install Scrapy`安装Scrapy,最后通过运行`scrapy`命令检查安装是否成功。文中包含作者的安装日志详情。
摘要由CSDN通过智能技术生成

安装 pip :
python -m ensurepip
然后安装 scrapy
pip install Scrapy
输入scrapy 查看有没有安装成功

下面是我自己的安装日志

<!-- 
D:\pyFile>pip install pytesseract
Collecting pytesseract
  Downloading pytesseract-0.3.8.tar.gz (14 kB)
    ERROR: Command errored out with exit status 1:
     command: 'd:\python37-32\python.exe' -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\ADMINR~1\\AppData\\Local\\Temp\\pip-install-72hyichb\\pytesseract_28de34574e8342c1b18fca39b9f82c47\\setup.py'"'"'; __file__='"'"'C:\\Users\\ADMINR~1
\\AppData\\Local\\Temp\\pip-install-72hyichb\\pytesseract_28de34574e8342c1b18fca39b9f82c47\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.rea
d().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base 'C:\Users\ADMINR~1\AppData\Local\Temp\pip-pip-egg-info-hnjn7g6d'
         cwd: C:\Users\ADMINR~1\AppData\Local\Temp\pip-install-72hyichb\pytesseract_28de34574e8342c1b18fca39b9f82c47\
    Complete output (42 lines):
    Traceback (most recent call last):
      File "C:\Users\ADMINR~1\AppData\Local\Temp\pip-install-72hyichb\pytesseract_28de34574e8342c1b18fca39b9f82c47\pytesseract\pytesseract.py", line 26, in <module>
        from PIL import Image
    ModuleNotFoundError: No module named 'PIL'
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "C:\Users\ADMINR~1\AppData\Local\Temp\pip-install-72hyichb\pytesseract_28de34574e8342c1b18fca39b9f82c47\setup.py", line 4, in <module>
        setup()
      File "d:\python37-32\lib\site-packages\setuptools\__init__.py", line 129, in setup
        return distutils.core.setup(**attrs)
      File "d:\python37-32\lib\distutils\core.py", line 121, in setup
        dist.parse_config_files()
      File "d:\python37-32\lib\site-packages\setuptools\dist.py", line 494, in parse_config_files
        ignore_option_errors=ignore_option_errors)
      File "d:\python37-32\lib\site-packages\setuptools\config.py", line 106, in parse_configuration
        meta.parse()
      File "d:\python37-32\lib\site-packages\setuptools\config.py", line 382, in parse
        section_parser_method(section_options)
      File "d:\python37-32\lib\site-packages\setuptools\config.py", line 355, in parse_section
        self[name] = value
      File "d:\python37-32\lib\site-packages\setuptools\config.py", line 173, in __setitem__
        value = parser(value)
      File "d:\python37-32\lib\site-packages\setuptools\config.py", line 430, in _parse_version
        version = self._parse_attr(value)
      File "d:\python37-32\lib\site-packages\setuptools\config.py", line 305, in _parse_attr
        module = import_module(module_name)
      File "d:\python37-32\lib\importlib\__init__.py", line 127, in import_module
        return _bootstrap._gcd_import(name[level:], package, level)
      File "<frozen importlib._bootstrap>", line 1006, in _gcd_import
      File "<frozen importlib._bootstrap>", line 983, in _find_and_load
      File "<frozen importlib._bootstrap>", line 967, in _find_and_load_unlocked
      File "<frozen importlib._bootstrap>", line 677, in _load_unlocked
      File "<frozen importlib._bootstrap_external>", line 728, in exec_module
      File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
      File "C:\Users\ADMINR~1\AppData\Local\Temp\pip-install-72hyichb\pytesseract_28de34574e8342c1b18fca39b9f82c47\pytesseract\__init__.py", line 2, in <module>
        from .pytesseract import ALTONotSupported
      File "C:\Users\ADMINR~1\AppData\Local\Temp\pip-install-72hyichb\pytesseract_28de34574e8342c1b18fca39b9f82c47\pytesseract\pytesseract.py", line 28, in &l
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值