https://github.com/moisutsu/anaconda-template
Templates for convenient Anaconda use
https://github.com/moisutsu/anaconda-template
Last synced: 12 months ago
JSON representation
Templates for convenient Anaconda use
- Host: GitHub
- URL: https://github.com/moisutsu/anaconda-template
- Owner: moisutsu
- Created: 2022-05-17T02:33:19.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-07-13T05:47:11.000Z (almost 4 years ago)
- Last Synced: 2025-01-12T22:30:59.807Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 12.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# anaconda-template
Templates for convenient Anaconda use
# Clone into current directory
```bash
bash -c "$(curl -fsSL https://raw.githubusercontent.com/moisutsu/anaconda-template/main/clone_into_current_dir.sh)"
```
## How to use
Require
- [direnv](https://github.com/direnv/direnv)
### Initialize the virtual environment
Create a virtual environment for conda, set up direnv, etc.
```bash
make init
```
The default virtual environment name is the *current directory name* and the default Python version is `3.9`.
You can customize the virtual environment name and Python version as follows.
```bash
make init ENV_NAME=custom_name PYTHON_VERSION=3.10
```
### Export environmental information
Write environment information in `environment.yml`.
```bash
make export
```
### Import environmental information
Install the libraries written in `environment.yml`.
```bash
make import
```
### Remove virtual environment
Remove the conda virtual environment.
```bash
make remove
```