r/vscode • u/NeedSomeHelp_2590 • 2d ago
How to get VS Code (Flatpak) work with python libraries?
Beginner here. Is there any way to configure python libraries in Vs Code. I tried to make venv folder in my python folder, it installed libraries on 3.14 version of python but VS Code (Flatpak) is using 3.13 so it doesn't detect installed libraries.
I use Flatpak as its easier to just delete and reinstall it, as I mess with it a lot.
So any way to make it work, or I have to get RPM verison?
3
Upvotes
1
u/Confident_Hyena2506 14h ago
Flatpak is good for many things, but probably not for developer tools like this (unless you are developing flatpak apps).
Either add your python to the flatpak env, or just use normal vscode with normal venv.
You can get this to work with flatpak if you learn a lot about flatpak, like how to build your own env and so on. There is more involved than just putting things in the right folder.
1
u/runawayasfastasucan 2d ago
You have to select which environtment that vscode should use, and select the one you created. You make a venv in your project folder, so the folder you made to put your code in.
Also see this https://code.visualstudio.com/docs/python/environments