Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I am gonna have to go with it is the easiest. I keep a requirements.txt with all the shit I use all the time and every time I set up a new venv to play with, I just use that. One pip install and boom, ready to go. Salt and pepper to taste as you find things, add to the list.
*disclaimer: do not install all the things ever to deploy to prod -
@atrabilious That or Pipfile/pypoetry.toml. The only reasonable way to really work with Python packages.
-
Hazarth95013ysame as @atrabilious too
pip is a good tool,
you can use "pip freeze" when you have your setup and dump that to a requirements.txt
after that it's barely different from NPM, though python usually results into much slower requirements files in my experience.
make sure you're using the env module when setting up projects, If you always install everything to global/local repository you're going to end up with a bit of a mess. Separate environments are incredibly easy to maintain and move around :) -
@Hazarth yeah, that’s why I put my disclaimer. I may install everything while mucking around in code to figure out what I’m doing, but then limit my test deploy to only what I used. Bloat is a thing and should never be pushed up the env chain.
-
Python? It's a hyped language. If PHP or Javascript gets its own mature AI packages then python is dead.
Npm and composer are way better than pip. -
In addition to what @atrabilious said, there's also containers etc. - just handle the problem once and reuse your env
-
tommccann7770344dI love python. It's relatively easy to learn and use. It's powerful, with a great community. However, every time I install it in a new environment I have to go through a different version of configuration hell.
The virtual environments sound like a solution, but they have their own problems. Look up 'conda' in stackoverflow and see how many people have problems getting it to work.
This has to get better.
Related Rants
Importing modules in python is the biggest shit i have done in my life. ALWAYS SOMETHING IS NOT FOUND. I have no fuckin clue who came up with this shit. I fuckin hate python for that so so much
EASY LANGUAGE GO TO HELL
rant
imports
python