### Exporting Pip Dependencies to requirements.txt (Shell) Source: https://github.com/chriskok/botclassification-osrs/blob/master/commands.txt This command uses `pip freeze` to list all installed Python packages and their exact versions in the current environment. The output is then redirected (>) to create or overwrite the `requirements.txt` file. This file is commonly used to document direct and indirect dependencies managed by pip, allowing for environment recreation via `pip install -r requirements.txt`. It requires pip to be installed. ```Shell pip freeze > requirements.txt ``` -------------------------------- ### Exporting Conda Environment to environment.yml (Shell) Source: https://github.com/chriskok/botclassification-osrs/blob/master/commands.txt This command uses `conda env export` to capture the specifications of the currently active conda environment, including packages, versions, and channels. The `--no-builds` flag ensures better cross-platform compatibility by removing build specific information. The `-f environment.yml` option directs the output to a file named `environment.yml`. This file is used to recreate the environment using `conda env create -f environment.yml`. It requires conda to be installed and an environment to be active. ```Shell conda env export --no-builds -f environment.yml ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.