又是python3,發(fā)現(xiàn)坑真多驱闷,能不能好好用python3了...
macosx安裝scrapy的坑真多课兄,紀錄一下
首先支持的是python2,python3上安裝成功卻不能使用...
libxml2,libxslt
$brew install libxml2
$brew install libxslt
$brew link libxml2 --force
$brew link libxslt --force
command line
$xcode-select --install
lxml !!!出問題的一般都在這
$CPATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk/usr/include/libxml2/ pip install lxml
善用locate命令
scrapy
$pip install scrapy