Skip to content
Snippets Groups Projects
Commit 0f39f499 authored by Tobias Hensel's avatar Tobias Hensel
Browse files

Install vernünftig

parent 6b1bc1af
No related branches found
No related tags found
No related merge requests found
......@@ -3,8 +3,38 @@
Teil einer Übung von ML Modul im Master.
zum installeren der nötigen Umgebung nutze die install.sh oder die install.bat
### Installation unter Linux
1. Stelle sicher, dass [Mamba] installiert ist.
2. Führe das Skript zur Einrichtung der Umgebung aus:
```bash
chmod +x install_env.sh
./install_env.sh
```
### Installation unter Windows
1. Stelle sicher, dass [Mamba] installiert ist.
2. Führe das Skript `install.bat` per Doppelklick oder im Terminal aus:
```bat
install.bat
```
### Aktivierung der Umgebung
zum aktivieren der Umgebung in Linux und Windows:
```bash
conda activate bikesharingenv
```
und dann zum testen:
```bash
python evaluate_model.py
```
zum aktivieren der Umgebung:
mamba activate bikesharingenv
@echo on
@echo off
REM Check if mamba is installed
where mamba >nul 2>nul
......@@ -8,7 +8,8 @@ if %errorlevel% neq 0 (
)
echo Creating environment using mamba...
mamba env create -f environment.yaml
call mamba activate bikesharingenv
echo Environment 'bikesharingenv' created.
echo To activate it, run:
echo mamba activate bikesharingenv
# This script installs the required environment for the project.
%!/bin/bash
#!/bin/bash
# Check if mamba is installed
if ! command -v mamba &> /dev/null
then
echo "mamba could not be found, exiting"
#stopping the script
exit
else
echo "mamba is already installed"
echo "Mamba is not installed. Please install it first."
exit 1
fi
echo "Creating environment from environment.yaml..."
mamba env create -f environment.yaml
mamba activate bikesharingenv
\ No newline at end of file
echo "Environment 'bikesharingenv' created."
echo "To activate it, run:"
echo " mamba activate bikesharingenv"
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment