英文:
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 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.
答案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.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论