MAC基本信息:
执行命令:
brew install cmake protobuf rust python@3.10 git wget
遇到以下问题:
根据这个错误做搜索,发现需要执行以下命令 :
brew -v
获取如下信息:
按照上述信息执行:
git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core
git config --global --add safe.directory /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask
重新执行以下命令:
brew install cmake protobuf rust python@3.10 git wget
判断python是否安装成功:
python3 -V
安装效果:
修改别名,执行命令
vim ~/.bash_profile
添加下面信息:
执行命令:
#
source .bash_profile
#
python -V
#
pip