版本信息:
Android8.0
python3.7.1
安装命令:pip install scrapy/easy_install scrapy
遇到的问题及解决方法:
-
fatal error: ‘Python.h’ file not found
–>pkg install python-dev // 尝试过安装python3-dev,但无法找到
-
fatal error: ‘ffi.h’ file not found
–>pkg install libffi-dev
-
fatal error: ‘libxml/xpath.h’ file not found和fatal error: ‘libxml/xmlversion.h’ file not found
–>pkg install libxml2 libxslt-dev // 如果仍然无法解决,尝试安装libxslt, libxml2-dev
-
fatal error: ‘openssl/opensslv.h’ file not found
–>pkg install openssl-dev //尝试过安装libssl-dev, 但无法找到
解决以上几个依赖问题后,安装成功,期间曾用pip安装过Cython。