Skip to content Skip to sidebar Skip to footer

Install Scrapy On Os X El Capitan

I tried to install Scrapy on El Capitan but have not been successful yet. This happens when I use pip install Scrapy: #include ^ 1 error gener

Solution 1:

The issue here is with installation of the dependencies needed for Scrapy

first of all you should upgrade to the latest version of pip:

pip install --upgrade pip

If that doesnt work, to build cryptography and dynamically link it:

brew install openssl
env LDFLAGS="-L$(brew --prefix openssl)/lib" CFLAGS="-I$(brew --prefix openssl)/include" pip install cryptography  

further information on installation can be found in the cryptography docs

Other issues may be solved by using the command

LDFLAGS="-L/usr/local/opt/openssl/lib" pip install cryptography --no-use-wheel

This shouldnt be necessary however, if all your software (latest pip and cryptography), is up to date. More on this issue can be found in the issues in the cryptography repo on github

Post a Comment for "Install Scrapy On Os X El Capitan"