r/linux_programming • u/luckymcdumpy • Oct 29 '25
understanding virtual enviornments
i just started coding after a bit and after a switch to linux mint, im using vscode and while trying to install a pip3 library pwinput, it told me i would need to use a virtual enviornment to install the library. I understand what they are and all, all i need help with is knowing how to use them, because after tutorials and the ai bot telling me everything, they wouldnt work, i know im doing something wrong, but i just need clarification how to use them.
16
Upvotes
View all comments
Show parent comment
3
u/IndianIT Oct 31 '25
cd folder_name - > do this first and setup env inside the folder
cd /folder_name
python -m venv venv
source venv/bin/activate
pip install pwinput