2 ms·
Sure can pin versions, it’s easy too, if you just use «pip freeze».
by pletnes 4y ago
Sure can pin versions, it’s easy too, if you just use «pip freeze».
- anyfactor 4y agoBetter option is to use pipreqs. Virtual Environment gets on my way. Looking at you Jupyter notebook.
- pid-1 4y agoNow you lost track of which are your top level dependencies and which are dependencies of dependencies.
- _Wintermute 4y agoThen use pip compile.
- pid-1 4y agoSure. Or poetry, or pipenv, or whatever third party packaging system you enjoy. The whole point of GP is that python lacks a native sane packaging system, which I agree.
- pletnes 4y agoPython has several. It’s overall a good thing. It’s the reason you can package both one-file scripts and huge C++ / Fortran packages, which is the reason it has become a huge language in HPC / ML / AI / astronomy / data science / … I agree that it makes life more confusing for newbies, though.
- ska 4y agoThat only solves part of the problem. something like poetry's approach is the right one here; you need a list of core dependencies (not derived ones), you need a solver for when anything changes to find a new set of viable versions, and you need a lock file of some sort to uniquely & reproducible construct an environment.