mac scrapy安裝常見錯誤
阿新 • • 發佈:2019-02-09
安裝命令列工具
xcode-select --install
已經安裝xcode的,在其偏好設定中指定
pip install scrapy
驗證
安裝好之後再終端輸入scrapy,出現如下提示,則安裝成功
Usage:
scrapy <command> [options] [args]
Available commands:
bench Run quick benchmark test
fetch Fetch a URL using the Scrapy downloader
genspider Generate new spider using pre-defined templates
runspider Run a self-contained spider (without creating a project)
settings Get settings values
shell Interactive scraping console
startproject Create new project
version Print Scrapy version
view Open URL in browser, as seen by Scrapy
常見報錯
command '/usr/bin/clang' failed with exit status 1
沒有安裝命令列工具