Using /usr/local/lib/python2.6/dist-packages/Scrapy-0.12.0.2541-py2.6.egg
Processing dependencies for scrapy
Searching for Twisted>=2.5
Reading http://pypi.python.org/simple/Twisted/
Reading http://twistedmatrix.com/
Reading http://tmrc.mit.edu/mirror/twisted/Twisted/10.0/
Reading http://www.twistedmatrix.com
Reading http://twistedmatrix.com/products/download
Reading http://tmrc.mit.edu/mirror/twisted/Twisted/8.2/
Reading http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/
Reading http://tmrc.mit.edu/mirror/twisted/Twisted/9.0/
Reading http://twistedmatrix.com/projects/core/
Best match: Twisted 11.0.0
Downloading http://pypi.python.org/packages/source/T/Twisted/Twisted-11.0.0.tar.bz2#md5=d7f94a1609a1b8f3b8c8d0146d4cfe54
Processing Twisted-11.0.0.tar.bz2
Running Twisted-11.0.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-ol2QlG/Twisted-11.0.0/egg-dist-tmp-SEDAa3
twisted/runner/portmap.c:10: fatal error: Python.h: No such file or directory
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
Then I try to install using aptitude
2. error after aptitude install, and after a successful install, I get the following error:
$ aptitude install python-scrapy
$ scrapy
Traceback (most recent call last):
File "/usr/local/bin/scrapy", line 4, in <module>
import pkg_resources
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 2671, in <module>
working_set.require(__requires__)
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 654, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.6/dist-packages/pkg_resources.py", line 552, in resolve
raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: Twisted>=2.5
$ scrapy-ctl
Traceback (most recent call last):
File "/usr/bin/scrapy-ctl", line 3, in <module>
from scrapy.command.cmdline import execute
ImportError: No module named cmdline
I'm new to scrapy and how can I solve these problem
http://doc.scrapy.org/topics/ubuntu.html
> --
> You received this message because you are subscribed to the Google Groups "scrapy-users" group.
> To post to this group, send email to scrapy...@googlegroups.com.
> To unsubscribe from this group, send email to scrapy-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/scrapy-users?hl=en.
余立鑫 (Lx Yu), ELEME Inc.
Email: lx...@ele.me
Mobile: +86-136-0167-6914
http://ele.me 饿了么?