Skip to content

Instantly share code, notes, and snippets.

@michaelluk
Created August 8, 2014 06:27
Show Gist options
  • Save michaelluk/e678f3c3e7d7829437f7 to your computer and use it in GitHub Desktop.
Save michaelluk/e678f3c3e7d7829437f7 to your computer and use it in GitHub Desktop.
install scrapy on mac osx 10.9+ (tested on 10.9 & 10.10)
# https://cryptography.io/en/latest/installation/#using-your-own-openssl-on-os-x
brew install pkg-config libffi
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
export PKG_CONFIG_PATH=/usr/local/Cellar/libffi/3.0.13/lib/pkgconfig/
brew install openssl
env ARCHFLAGS="-arch x86_64" LDFLAGS="-L/usr/local/opt/openssl/lib" CFLAGS="-I/usr/local/opt/openssl/include" pip install cryptography
pip install cryptography
pip install Scrapy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment