本机环境
- macOS High Sierra (version 10.13.5)
- python 3.6
遇到的问题 (faced problem):
如下:
Project ERROR: Xcode not set up properly. You may need to confirm the license agreement by running /usr/bin/xcodebuild.
error: [Errno 2] No such file or directory: ‘src/webkit_server’
真实的原因 (reason):
webkit-server 没有被安装成功
尝试的方法 (tried solution):
以为是因为Xcode的协议没有达成,于是拼命去想agree这个协议。
尝试了两次,以及升级了Xcode,依旧没有反应。
sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer
sudo xcodebuild -license
正确的方法 (real solution):
安装qt5.5从而正确安装webkit-server。
brew install qt@5.5
export PATH=”/usr/local/opt/qt@5.5/bin:$PATH”
pip install webkit-server
这个包的安装是为了方便抓取一些有javascript主写的网页。最近研究抓网页,到阶段会总结经验。