4 ms·
Last time I used python I just did pip install -r requirements.txt -t libs and added the folder to PYTHONPATH. I never bothered with virtualenv.
by imtringued 6y ago
Last time I used python I just did
pip install -r requirements.txt -t libs
and added the folder to PYTHONPATH. I never bothered with virtualenv.
- akvadrako 6y agoThat is basically virtualenv though it won't work in as many cases. Not that there is anything wrong with it, but I don't see how it's any better.
- rk06 6y agoPYTHONPATH is also global! so all projects will still be referring to the same set of libs. how does that change anything at all?
- mixmastamyk 6y agoThat's an optional environment variable, it is not set unless you set it. Meaning you could change it to anything, per process. Also you can change sys.path. Not an issue.