Jan Bremec’s Post

I've shared requirements.txt files generated with pip freeze and watched them fail on every machine that wasn't mine. So I built envcore. Because waiting for the Python ecosystem to fix a 15-year-old problem seemed optimistic. It hooks directly into Python's import system and records what actually loads while your code runs. Not what's installed on your machine. Not what a static scanner thinks might be imported. What. Actually. Runs. envcore trace train.pyenv_manifest.json → envcore restore Clean, pinned, minimal manifest. Exact environment rebuilt anywhere. No 200-package soup, no missing runtime imports, no "works on my machine" as if that's a valid thing to say to another human. It also resolves import aliases correctly — PIL to Pillow, cv2 to opencv-python, sklearn to scikit-learn — because the gap between what you type and what you install has existed since forever and apparently needed one person to care. pip freeze has been lying to you for 15 years. Everyone accepted it. I got tired of it. 30 seconds to try: pip install envcore If it's useful, a GitHub star helps a new project get noticed. https://lnkd.in/dz3MFTbD #Python #OpenSource #DevTools

  • graphical user interface, application

I was once asked to help some less experienced developer improve his app that was actually somehow important on national level. I checked the requirements.txt, it was multiple screens long. Among other completely unnecessary things, it included a library for Chinese calendar. It was a wake up call - I never again used pip freeze 😅

To view or add a comment, sign in

Explore content categories