用sudo pip3 install oct2py,发现报错:ERROR: Cannot uninstall ‘pexpect’. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
解决办法:sudo pip3 install oct2py --ignore-installed pexpect
成功安装