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.
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.