问题描述

有一段时间没有使用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

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐