Scrapy: Ein Projekt kann nicht erstellt werden
Ich hatte Probleme bei der Installation von Scrapylxml
aber dann habe ich ein paar informationen zum stackoverflow gefunden. Aufgrund dieser Informationen habe ich einesudo easy_install lxml
Mit einigem Fehler denke ich, dass Scrapy installiert wurde:
Der Grund, warum ich zu diesem Urteil gekommen bin, ist, dass ich mich weigere, Folgendes zu tun:
Python 2.7.5 (default, Jul 28 2013, 07:27:04)
[GCC 4.2.1 Compatible Apple LLVM 4.2 (clang-425.0.28)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> from scrapy import *
>>>
Aber wenn ich versuche das zu tunScrapy-Tutorial Ich erhalte folgenden Fehler:
$ scrapy startproject tutorial
Traceback (most recent call last):
File "/usr/local/bin/scrapy", line 4, in <module>
import pkg_resources
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 2603, in <module>
working_set.require(__requires__)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 666, in require
needed = self.resolve(parse_requirements(requirements))
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/pkg_resources.py", line 565, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: lxml