Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision

Target

Select target project
  • ckaufmann/install-python-tensorflow-gym
1 result
Select Git revision
Show changes
Commits on Source (3)
No preview for this file type
......@@ -147,7 +147,10 @@ Falls Sie eine NVIDIA GPU haben und den Support dafür aktivieren wollen, instal
\begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize]
#*\color{gray}(ml) C:\textbackslash Users\textbackslash john>*mamba install cudatoolkit cudnn
\end{lstlisting}
und fügen auch den Pfad zu den entsprechenden Libraries (z.\,B.\ \textit{cudnn64\_8.dll}) in ihrer Benutzerumgebungsvariable \lstinline|Path| hinzu, besipielhaft:
\begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize]
C:\Users\john\mambaforge\envs\ml\Library\bin
\end{lstlisting}
......
No preview for this file type
......@@ -52,7 +52,7 @@
\usepackage[color=blue, author={Christof Kaufmann}]{attachfile2} % load after hyperref to avoid option clash from unicode=true
\title{Installation of Python via Mambaforge for Windows}
\date{December 2022}
\date{April 2023}
\author{Christof Kaufmann}
% one infinite page, https://tex.stackexchange.com/a/19241/115883
......@@ -104,24 +104,24 @@ Now we are ready to install the packages we need.
Let's create a new environment called \textit{weai} and add the packages we need to it (copy \& paste black text lines):
\begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize]
#*\color{gray}(base) C:\textbackslash Users\textbackslash john>*mamba create -n weai astunparse matplotlib scikit-learn ^
absl-py ipympl jupyter h5py spyder ^
numpy gast=0.4 wrapt protobuf=3.19 ^
notebook typing-extensions seaborn ^
termcolor google-pasta grpcio mypy ^
tensorboard=2.10 odfpy keras=2.10 ^
keras-preprocessing libclang ^
flatbuffers=1.12 opt_einsum openpyxl
#*\color{gray}(base) C:\textbackslash Users\textbackslash john>*mamba create -n weai python=3.9 astunparse matplotlib ^
ipympl mypy jupyter notebook spyder ^
scikit-learn seaborn openpyxl odfpy ^
pyarrow pandas
\end{lstlisting}
You will get a list of packages and can confirm with \keyenter. Installation takes a while. Since \lstinline|tensorflow| is not yet available for Windows on \texttt{conda-forge}, we need to install it from \textit{PyPI} using \lstinline|pip| into the \textit{weai} environment:
\begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize]
#*\color{gray}(base) C:\textbackslash Users\textbackslash john>*mamba activate weai
#*\color{gray}(weai) C:\textbackslash Users\textbackslash john>*pip install tensorflow==2.10.1
\end{lstlisting}
If you have a NVIDIA GPU and want to activate support for it, install the following packages:
If you have an NVIDIA GPU and want to activate support for it, install the following packages:
\begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize]
#*\color{gray}(weai) C:\textbackslash Users\textbackslash john>*mamba install cudatoolkit cudnn
\end{lstlisting}
and optionally (not required for Spyder) also add the path to the corresponding libraries (e.\,g.\ \textit{cudnn64\_8.dll}) in your user environment variable \lstinline|Path|, for example:
\begin{lstlisting}[gobble=2, basicstyle=\ttfamily\footnotesize]
C:\Users\john\mambaforge\envs\ml\Library\bin
\end{lstlisting}
......