osx - Scrapy on Mac OS 10.10 tries to use Python 3.4 -



osx - Scrapy on Mac OS 10.10 tries to use Python 3.4 -

i've had problem installing scrapy on yosemite. i've gotten dependencies installed, when seek run scrapy error.

$ scrapy crawl my_crawler ---------- file "/library/frameworks/python.framework/versions/3.4/bin/scrapy", line 5, in <module> pkg_resources import load_entry_point file "/library/frameworks/python.framework/versions/3.4/lib/python3.4/site-packages/pkg_resources.py", line 2697, in <module> working_set.require(__requires__) file "/library/frameworks/python.framework/versions/3.4/lib/python3.4/site-packages/pkg_resources.py", line 669, in require needed = self.resolve(parse_requirements(requirements)) file "/library/frameworks/python.framework/versions/3.4/lib/python3.4/site-packages/pkg_resources.py", line 572, in resolve raise distributionnotfound(req) pkg_resources.distributionnotfound: cryptography>=0.2.1

i know scrapy doesn't back upwards 3.4, reason trying utilize it. got suggestions?

i solved yesterday on server, solution found using google translate on chinese websites

pkg_resources.distributionnotfound: cryptography>=0.2.1

this problem indicates missing bundle on distribution called libffi-dev.

please locate bundle osx , install it. utilize easy_install utility install cryptography 0.2.2 bundle python.

you're scrapy application should work after meet dependencies.

python masking true dependency issue reporting problem cryptography packages, when in fact missing libffi-dev bundle osx. may explicitly need dev bundle libffi.

good luck! able solve meeting libffi dependency.

python osx scrapy

Comments

Popular posts from this blog

c - Compilation of a code: unkown type name string -

java - Bypassing "final local variable defined in an enclosing type" -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -