Skip to content

Instantly share code, notes, and snippets.

@Sysa
Last active December 19, 2023 10:40
Show Gist options
  • Save Sysa/c4da2f0cb788b622f870e69a681e31ba to your computer and use it in GitHub Desktop.
Save Sysa/c4da2f0cb788b622f870e69a681e31ba to your computer and use it in GitHub Desktop.
conda tricks
https://github.com/conda/conda/issues/8687
grep -rl "1\.0<2" /anaconda/envs/recs_servables/lib/python3.7/site-packages | xargs sed -i 's/1.0<2/1.0, <2/g'
### Updating current dependencies
To update python dependencies, run env update and export a list of new dependencies:
```bash
conda env update --prune --file conda.yml
conda env export -n pers_opt_search -f conda.lock.yml -vvv --no-builds
```
To update system dependencies via conda:
```bash
conda activate pers_opt_search
conda update --all
```
Files managed by conda were found to have been deleted/overwritten in the:
RUN conda pack -n TritonOrchestrator -o triton.tar.gz -f --ignore-missing-files
### pytest run in non-interactive mode:
conda run -n $(CONDA_ENV_NAME) pytest -m unit_pd tests/ --disable-warnings --durations=10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment