|
|
### Create conda environment with Python 3.6
|
|
|
|
|
|
|
|
|
```
|
|
|
conda create -n myenv python=3.6
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Clone env
|
|
|
|
|
|
```
|
|
|
conda create --name myclone --clone myenv
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Remove conda environment
|
|
|
|
|
|
```python
|
|
|
conda remove --name myenv --all
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Create conda env from .yml file
|
|
|
|
|
|
```
|
|
|
conda env create -f environment.yml
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Create .yml file (conda)
|
|
|
|
|
|
```
|
|
|
conda env export > environment.yml
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Create requirements.txt file (pip)
|
|
|
|
|
|
```
|
|
|
conda list -e > requirements.txt
|
|
|
``` |
|
|
\ No newline at end of file |