1、macOS系统上默认安装的为python2
命令:which python
输出结果:/usr/bin/python
2、查看python的安装目录
命令: ls -l /usr/bin/python
输出结果:/usr/bin/python -> …/…/System/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7
3、安装管理工具-Homebrew
命令:/bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)”
4、安装python3
命令: brew install python3
5、安装paramiko
命令:pip3 install paramiko