After installing platformio from the official guide on Clion, I have a problem with No module named 'platformio'

huangapple go评论71阅读模式
英文:

After installing platformio from the official guide on Clion, I have a problem with No module named 'platformio'

问题

在按照Clion官方指南安装PlatformIO后,我遇到了以下问题:

 File "/opt/platformio/penv/bin/pio", line 5, in <module>
    from platformio.__main__ import main
ModuleNotFoundError: No module named 'platformio'

我尝试了添加路径和重新安装,但都没有帮助。每当我尝试初始化项目时,它都会崩溃并显示错误。

我正在尝试在Clion上运行这个项目,我的操作系统是Fedora 38。 After installing platformio from the official guide on Clion, I have a problem with No module named 'platformio'

英文:

After installing platformio from the official guide on Clion, I have the following problem:

 File "/opt/platformio/penv/bin/pio", line 5, in <module>
    from platformio.__main__ import main
ModuleNotFoundError: No module named 'platformio'

I tried adding Path, and also reinstalling. But that didn't help either. Whenever I try to initialize the project, it crashes with an error.

I'm trying to run this on Clion, my operating system is Fedora 38. After installing platformio from the official guide on Clion, I have a problem with No module named 'platformio'

答案1

得分: 0

I've already found the problem. It sounds like this. I was installing CLion from the Software application in Fedora. From there, you can only install the flat package. The problem was that after installation, CLion didn't have extended rights to search for installed libraries and plugins. Therefore, you need to write the path to the directory where the script is stored yourself. The problem can be solved in several ways.

The first way is to uninstall the flat package and install it yourself through the official portal.

The second way is to extend the rights of CLion.

The third way is to install PlatformIO directly into the CLion interpreter.

英文:

I've already found the problem. It sounds like this. I was installing CLion from the Sofware application in Fedora. From there, you can only install the flat package. The problem was that after installation, clion didn't have extended rights to search for installed libraries and plugins. Therefore, you need to write the path to the directory where the script is stored yourself. The problem can be solved in several ways.

The first way is to uninstall the flat package and install it yourself through the official portal.

The second way is to extend the rights of Clion.

The third way is to install platformio directly into the CLion interpreter.

huangapple
  • 本文由 发表于 2023年6月6日 05:57:02
  • 转载请务必保留本文链接:https://go.coder-hub.com/76410247.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定