注意安装完成后,有一条指令提示将Homebrew添加到profile中
# 官网安装. https://brew.sh/
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# 或
/bin/bash -c "$(curl -fsSL https://gitee.com/ineo6/homebrew-install/raw/master/install.sh)"
国内源
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"
解决无git仓库/目录的bug(确认homebrew安装位置)
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /opt/homebrew/Library/Taps/homebrew/homebrew-cask
// 仍有提示如无remote等,则 brew reinstall libimobiledevice
brew cask install iterm2
// 不推荐
brew install libimobiledevice --HEAD
如遇无法安装等bug, 尝试分步骤安装
brew install libimobiledevice
brew install ideviceinstaller
官网下载(http://python.p2hp.com/)
或brew安装
brew install python
声明其path, 这样以后控制台直接输入python就会启动python3而不是自带的python2
PATH="/Library/Frameworks/Python.framework/Versions/3.7/bin:${PATH}"
export PATH
alias python="/Library/Frameworks/Python.framework/Versions/3.7/bin/python3.7"
修改国内镜像:
# 回到主页
cd ~
# 确认是否有.pip文件夹和pip.conf文件, 没有的话创建(也可touch)
mkdir .pip
vim pip.conf
# i进入编辑, 输入以下内容
[global]
index-url = https://pypi.tuna.tsinghua.edu.cn/simple
[install]
trusted-host=mirrors.aliyun.com
brew install node
参考文档: https://github.com/appium/webdriveragent
git或zip到本地,解压后打开WebDriverAgent.xcodeproj
https://github.com/appium/WebDriverAgent.git
gh repo clone appium/WebDriverAgent
参考文档: https://github.com/alibaba/web-editorweb-editor
依赖: Python3.6+ 和facebook-wda
尽量在Safari或Google Chrome上使用
pip3 install -U weditor
https://github.com/PaddlePaddle/PaddleOCR/blob/release/2.3/doc/doc_ch/quickstart.md#221
pip3 install "paddleocr>=2.0.1" # 推荐使用2.0.1+版本