CrazyFlie 2.1 on Visual Studio Code #213
-
I am trying to run my CrazyFlie 2.1 code through Visual Studio Code. However, running the code outputs an error "ModuleNotFoundError: No module named 'cflib'" although I have already installed cflib on my Terminal using 'pip3 install cflib'. I am not sure if there is any solution to this. I was able to run the CrazyFlie drone through IDLE on my computer but not through VS code. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That should work. If you have multiple python versions installed, you are perhaps running on a different version in VS code compared to what you have in your terminal? Then cflib is installed in a the "terminal python" and the "VS code python" will not find it. You can see the python installation that is used by VS code in the bar at the bottom of VS code. |
Beta Was this translation helpful? Give feedback.
That should work.
If you have multiple python versions installed, you are perhaps running on a different version in VS code compared to what you have in your terminal? Then cflib is installed in a the "terminal python" and the "VS code python" will not find it. You can see the python installation that is used by VS code in the bar at the bottom of VS code.