如何降级到 Platformio3

How to downgrade to Platformio3

如何安装旧版本的 PlatformIO?
例如。在 macosx 上安装 Platformio3.6.7

我尝试通过自制程序

brew install platformio@3.6.7
Error: No available formula with the name "platformio@3.6.7" 

运气不好

brew search platformio
platformio

homebrew好像只有最新的版本4

brew info platformio
platformio: stable 4.3.3
...

对我来说,它起到了以下作用。

卸载当前的自制软件 platformio:

brew uninstall platformio

使用 python2.7 pip 安装它(python3 不支持)

pip install -U "platformio<4"

或(使用python命令确保版本):

python2.7 -m pip install -U "platformio<4" --user

正在检查安装的版本:

python2.7 -m platformio --version
PlatformIO, version 3.6.7

运行 命令:

python2.7 -m platformio run ...