1、首先安装 python3 版本超过 3.4 目前我使用 3.7.5
下载网址:Python Releases for macOS | Python.org
2、下载 stcgal 选择需要的版本
网址: GitHub - grigorig/stcgal at v1.10
3、下载后到 stcgal根目录运行命令
./setup.py build
sudo ./setup.py install
4、将文件 stcgal.py 添加到 ~/.bash_profile 运行 source ~/.bash_profile
添加 alias stcgal="/Volumes/d/soft/stcgal-1.10/stcgal.py" (本地stcgal解压的目录下,不要复制我的)。
保存后 运行 source ~/.bash_profile 重新开启一个 终端 运行 stcgal -h 完成了。