|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
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. |
|