主题
- mac自带 python 2.7
- mac自带 easy_install
- 安装pip
sudo easy_install pip
- 安装scrap
sudo pip install Scrapy
我遇到的问题如下:
You have not agreed to the Xcode license agreements, please run 'xcodebuild -license' (for user-level acceptance) or 'sudo xcodebuild -license' (for system-wide acceptance) from within a Terminal window to review and agree to the Xcode license agreements.
解决方案:
sudo xcodebuild -license 然后agree 再次安装即可
- 调整各个模块
我遇到的问题如下:
ImportError: cannot import name xmlrpc_client
解决方案:
six版本不对
sudo pip uninstall six
sudo easy_install six
- scrapy —version 显示安装成功