Other Tips
Customize your shell using the config file
Export your environment for backup and recovering
Last updated
Last updated
# enter env first
$ conda activate genome_book
(genome_book)
# export the environment into a yml file, which contains all installation history
$ conda env export --from-history > environment.yml
(genome_book)
# This is the content of that file
$ cat environment.yml
name: genome_book
channels:
- conda-forge
- bioconda
- defaults
dependencies:
- pandas==1.0.3
- jupyter==1.0.0
- scikit-learn==0.22.2.post1
- pysam==0.15.4
- seaborn=0.10.0
- pybedtools==0.8.1
- python=3.7
- jupyter_contrib_nbextensions==0.5.1
- deeptools==3.4.2
prefix: /Users/hq/miniconda3/envs/genome_book
(genome_book)
# recreate the exact environment with the yml file
$ conda env create -f environment.yml