User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
I hate python
:blobcathearttrans@fedi.xerz.one:1❤️1
1
0
4
2
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
what the hell is a virtualenv
❤️1
5
1
3
1
User avatar
Alba 🌸 v_pat @mildsunrise@tech.lgbt
1y
@kitten a virtualenv is a folder that contains a bin/python, bin/pip, lib/site-packages...

using the bin/python of a virtualenv, your imports will look at lib/site-packages of that virtualenv

using the bin/pip of a virtualenv operates on the lib/site-packages of the virtualenv instead of the system's one

that way you can install the dependencies a project needs without interfering with the global python installation
2
0
1
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
1y
@mildsunrise so I should just use devcontainers, got it
1
0
1
0

User avatar
Alba 🌸 v_pat @mildsunrise@tech.lgbt
1y
@kitten ...no, it makes little sense to use virtualenvs if your global installation is already unique to your project. if you're using a devcontainer you can skip the virtualenv entirely
0
0
1
0