1. 首先安装python
2. 安装pip
# MacOS:执行命令
python -m ensurepip --upgrade
安装过程中出错:
Could not install packages due to an EnvironmentError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/pip'
Consider using the `--user` option or check the permissions.
解决方案:sudo -i 输入密码,再执行上面的命令,成功!!✌️