Skip to content
Snippets Groups Projects
Commit c8425566 authored by Christof Kaufmann's avatar Christof Kaufmann
Browse files

Fix linux gymnasium instructions

parent 8d5db216
No related branches found
No related tags found
No related merge requests found
......@@ -127,10 +127,10 @@ Nun sollte die \texttt{base}-Environment aktiviert sein, was Sie auch am Prompt
Wir erstellen nun eine Umgebung namens \lstinline|ml| mit Python 3.10 und den benötigten Paketen. Falls Sie eine NVIDIA-GPU haben, ersetzen Sie \lstinline|tensorflow| durch \lstinline|tensorflow-gpu=2.10| und beachten auch die weiteren Hinweise in Abschnitt~\ref{sec:gpu}.
\begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize]
mamba create -n ml python=3.10 tensorflow ipympl jupyter geopandas pystan \
mamba create -n ml python=3.10 tensorflow ipympl tqdm mypy jupyter pystan \
matplotlib seaborn scikit-learn openpyxl odfpy pyarrow \
gym-atari gym-box2d ffmpeg descartes spyder tqdm mypy \
ale-py jax-jumpy pygame==2.1.3 moviepy
geopandas descartes pyogrio spyder \
jax-jumpy moviepy shimmy-atari gymnasium-box2d
\end{lstlisting}
Sie können die Umgebung jederzeit mit \lstinline|mamba activate ml| aktivieren und mit \lstinline|mamba deactivate| deaktivieren. Generell können Sie mit \lstinline|mamba create -n <MYENVNAME> <PAKETE>| auch weitere Umgebungen einrichten und diese mit \lstinline|mamba activate <MYENVNAME>| aktivieren.
......@@ -138,15 +138,11 @@ Sie können die Umgebung jederzeit mit \lstinline|mamba activate ml| aktivieren
Installieren Sie nun in der Umgebung \lstinline|ml| noch Pakete, die es (noch) nicht in conda-forge gibt, sondern nur in PyPI. Hierdurch können allerdings Probleme in Ihrer Umgebung entstehen.
\begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize]
#*\color{gray}(base) \color{green!80!black}john \color{gray}\color{blue!90!black!70}\textasciitilde\ \color{gray}\$* mamba activate ml #*\color{cyan}\# \itshape wir wollen in 'ml' installieren*
#*\color{gray}(ml) \color{green!80!black}john \color{gray}\color{blue!90!black!70}\textasciitilde\ \color{gray}\$* pip install emnist gymnasium[atari,box2d,accept-rom-license]
\end{lstlisting}
Falls Sie eine Warnung bzgl.\ Box2D erhalten, installieren Sie es erneut, nachdem Swig nun in der richtigen Version installiert wurde:
\begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize]
#*\color{gray}(ml) \color{green!80!black}john \color{gray}\color{blue!90!black!70}\textasciitilde\ \color{gray}\$* pip uninstall Box2D
#*\color{gray}(ml) \color{green!80!black}john \color{gray}\color{blue!90!black!70}\textasciitilde\ \color{gray}\$* pip install Box2D
#*\color{gray}(ml) \color{green!80!black}john \color{gray}\color{blue!90!black!70}\textasciitilde\ \color{gray}\$* pip install emnist autorom[accept-rom-license]
\end{lstlisting}
\section{NVIDIA-GPU}
\label{sec:gpu}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment