3 ms·
You only need pip and virtualenvwrapper requirements.txt is a text file, not a separate tool... if you want your program to work exactly as intended in the fu
by airstrike 3y ago
You only need pip and virtualenvwrapper
requirements.txt is a text file, not a separate tool...
if you want your program to work exactly as intended in the future, there are tools like py2exe and py2app for that.
- mixmastamyk 3y agoDon't need any wrappers either. venv has been built into python for ages.
- airstrike 3y agoyes but `workon` is too good not to have
- mixmastamyk 3y agoLooks like what could be a shell alias to cd and activate? I always keep a few tabs open to my repos folder, so not sure it would help me much. Doesn't seem to support fish, though activate does.
- physicles 3y agoI modified my bash prompt to detect and auto-activate Python environments, and show if one is currently active. Haven’t thought about activate in years. It’s great.
- mixmastamyk 3y agoYes, I did that on my work laptop with fish, since I only ever used it with the work project. On my personal machine I don't bother with venvs, so also haven't thought about it in years. But was trying to figure out what the "workon" command did for GP.
- airstrike 3y ago`workon` lists all virtualenvs you have in your virtualenvs folder and `workon foo` activates environment foo this way I have all my envs in ~/virtual and all my projects in ~/projects and just `workon xyz` when I want to be in a certain venv for a given project (which doesn't always map one-to-one)