Auto update of requirements.yml in conda
问题 We are using conda to manage the environment of our Python projects. One thing that bugs us is someone in the team occasionally installs a new package in the environment but forget to update the requirements.yml file. Instead of typing this before every commit: conda env export > requirements.yml Is there away to have that file automatically updated when someone install or remove a package? 回答1: Git Hooks I don't know of a hook for conda (install/upgrade/remove) . However, one could add a Git