python - Scrapy Installation on Ubuntu14.04 -
i follow installation guide on https://docs.scrapy.org/en/latest/intro/install.html failed installation.when pip install scrapy,it failed install in end.
------edit on 11:47--- can not run scrapy properly.
---when run it----
traceback (most recent call last): file "/usr/local/bin/scrapy", line 7, in <module> scrapy.cmdline import execute file "/usr/local/lib/python2.7/dist-packages/scrapy/cmdline.py", line 9, in <module> scrapy.crawler import crawlerprocess file "/usr/local/lib/python2.7/dist-packages/scrapy/crawler.py", line 7, in <module> twisted.internet import reactor, defer file "/usr/local/lib/python2.7/dist-packages/twisted/internet/reactor.py", line 38, in <module> twisted.internet import default file "/usr/local/lib/python2.7/dist-packages/twisted/internet/default.py", line 56, in <module> install = _getinstallfunction(platform) file "/usr/local/lib/python2.7/dist-packages/twisted/internet/default.py", line 44, in _getinstallfunction twisted.internet.epollreactor import install file "/usr/local/lib/python2.7/dist- packages/twisted/internet/epollreactor.py", line 24, in <module> twisted.internet import posixbase file "/usr/local/lib/python2.7/dist- packages/twisted/internet/posixbase.py", line 18, in <module> twisted.internet import error, udp, tcp file "/usr/local/lib/python2.7/dist-packages/twisted/internet/tcp.py", line 28, in <module> twisted.internet._newtls import ( file "/usr/local/lib/python2.7/dist-packages/twisted/internet/_newtls.py", line 21, in <module> twisted.protocols.tls import tlsmemorybiofactory, tlsmemorybioprotocol file "/usr/local/lib/python2.7/dist-packages/twisted/protocols/tls.py", line 63, in <module> twisted.internet._sslverify import _setacceptableprotocols file "/usr/local/lib/python2.7/dist- packages/twisted/internet/_sslverify.py", line 38, in <module> tlsversion.tlsv1_1: ssl.op_no_tlsv1_1, attributeerror: 'module' object has no attribute 'op_no_tlsv1_1'
instead of pip install scrapy
, sudo pip install scrapy
alternatively, use virtualenv
Comments
Post a Comment