问题描述

有一段时间没有使用platformio了,今天突然使用的时候,发现用不了,报错:
Ubuntu PlatformIO: Can not find working Python 3.6+ Interpreter. Please install the latest Python 3 and restart VSCode。

解决办法1

上网一查,发现好多人遇到,同时他们也给出了解决办法:

sudo apt-get install python3-venv

【Ubuntu vscode pio extension install: PlatformIO: Can not find working Python 3.6+ Interpreter】
在这里插入图片描述
【 Can not find working Python 3.6+ Interpreter #3764 】
在这里插入图片描述【 Can not find Python Interpreter #1774 】
在这里插入图片描述

解决办法2

按照办法1操作之后,还是不行。那就找到 .platformio 这个文件夹,然后将其删除(我这里是重命名,效果一样),然后再重新打开vscode。参考【 Can not find Python Interpreter #1774 】
在这里插入图片描述

sudo find / -name .platformio

在这里插入图片描述

Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐