1

问题

  • 我在 vscode 中使用 platformio IDE。

  • 在 2019.10.11 之前,platformio IDE 扩展运行良好。

  • 但是2019.10.11之后,每次打开vscode都会收到这个信息。

Installing PlatformIO Core...
Please do not close this window and do not open other folders until this process is completed.
Failed to install PlatformIO IDE.
  • 没有更多信息显示。

我试过的

  • 卸载vscode并重新安装

  • 卸载platformio IDE并重新安装

  • 将 vscode 从 1.39 降级到 1.37

  • 将 platfotmio IDE 从 1.90 降级到 1.83

  • pip --no-cache-dir install -U platformio

  • 康达安装平台

  • pip 卸载平台,然后 pip 安装平台io

  • 重新启动计算机

  • 卸载platformio IDE并删除名称中包含'platformio'的所有文件夹和文件,然后重新安装platformio

  • 以管理员身份运行 vscode 并安装 platformio IDE

  • 我现在还没有解决问题。

我发现了什么

  • 在我卸载platformio IDE并尝试重新安装它(当然我失败了)后,我发现文件夹“C:\Users\Bowman.platformio”的大小只有0KB,它只包含一个文件夹“.cache”。

我在我的电脑中安装了什么

  • 蟒蛇(Python 3.7)

  • JDK

  • 节点.js

  • .NET 核心

  • mingw64

  • 视觉工作室 2019

  • 视觉工作室 2017

  • Stm32CubeIDE

4

3 回答 3

0

下午好。

我有完全相同的问题。做了几乎与您描述的主题相同的主题。对我来说,它与 anaconda 软件有关。

我在visual studio环境中卸载了anaconda,卸载/重新安装platformio并且它工作。

我得到了 platformio 服务已经启动的消息,这让我开始思考。

问候

于 2019-10-15T10:01:15.960 回答
0

thats no big deal i had the same issue....just go to help > Toggle developers and in that press console and search platformIo that will show the error most likely with python installation ...you might wants to install some packages manually.... i was using ubuntu...so python packages conflicts...

于 2020-12-12T09:06:35.307 回答
0

Today I tried and (initially) failed to install PlatformIO on a Linux Mint 20.2 Cinnamon machine. VSCode V1.61.2 was freshly installed, Python3 was installed.

Trying to install PlatformIO told me that the Python on the machine was not suitable and installation failed.

After enabling Developer mode in VSCode (Help | Toggle Developer Tools) and trying the install again, I found an error message that told me that the distutils package for Python was missing.

That is because I had not installed pip3.

In the terminal, run sudo apt install python3-pip

That gets you the appropriate packages and then PlatformIO will install properly.

于 2021-10-25T12:29:47.157 回答