鱼C论坛

 找回密码
 立即注册
查看: 411|回复: 1

scrap安装失败?

[复制链接]
发表于 2020-3-19 21:17:18 | 显示全部楼层 |阅读模式

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

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

x
用pip安装scrapy失败
pip install scrapy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

报错如下:
pip install scrapy -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7. More details about Python 2 support in pip, can be found at https://pip.pypa.io/en/latest/de ... s/#python-2-support
Looking in indexes: http://pypi.douban.com/simple/
Collecting scrapy
  Downloading http://pypi.doubanio.com/package ... y2.py3-none-any.whl (238kB)
     |████████████████████████████████| 245kB 467kB/s
Collecting service-identity>=16.0.0 (from scrapy)
  Downloading http://pypi.doubanio.com/package ... y2.py3-none-any.whl
Collecting parsel>=1.5.0 (from scrapy)
  Downloading http://pypi.doubanio.com/package ... y2.py3-none-any.whl
Collecting pyOpenSSL>=16.2.0 (from scrapy)
  Downloading http://pypi.doubanio.com/package ... y2.py3-none-any.whl (53kB)
     |████████████████████████████████| 61kB 974kB/s
Collecting queuelib>=1.4.2 (from scrapy)
  Downloading http://pypi.doubanio.com/package ... y2.py3-none-any.whl
Collecting Twisted>=16.0.0; python_version == "2.7" (from scrapy)
  Downloading http://pypi.doubanio.com/package ... ted-19.10.0.tar.bz2 (3.1MB)
     |████████████████████████████████| 3.1MB 1.2MB/s
    ERROR: Command errored out with exit status 1:
     command: /usr/bin/python -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/qv/8ggjp2rn4t96xz9fcgt33tww0000gn/T/pip-install-TdnVIQ/Twisted/setup.py'"'"'; __file__='"'"'/private/var/folders/qv/8ggjp2rn4t96xz9fcgt33tww0000gn/T/pip-install-TdnVIQ/Twisted/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' egg_info --egg-base pip-egg-info
         cwd: /private/var/folders/qv/8ggjp2rn4t96xz9fcgt33tww0000gn/T/pip-install-TdnVIQ/Twisted/
    Complete output (12 lines):
    no previously-included directories found matching '.travis'
    no previously-included directories found matching 'tests'
    warning: no previously-included files found matching 'examplesetup.py'
    no previously-included directories found matching 'src/exampleproj'
    no previously-included directories found matching 'src/incremental/newsfragments'
   
    Installed /private/var/folders/qv/8ggjp2rn4t96xz9fcgt33tww0000gn/T/pip-install-TdnVIQ/Twisted/.eggs/incremental-17.5.0-py2.7.egg
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'long_description_content_type'
      warnings.warn(msg)
    /System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'project_urls'
      warnings.warn(msg)
    error in Twisted setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers.
    ----------------------------------------
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

 楼主| 发表于 2020-3-19 22:52:23 | 显示全部楼层
解决了,升级下pip和setuptools就可以了
想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-11-25 02:42

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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