3fe5abe0a1
Signed-off-by: David Rotermund <54365609+davrot@users.noreply.github.com> |
||
---|---|---|
.. | ||
Image1.png | ||
README.md |
Python installation (Windows)
{:.no_toc}
* TOC {:toc}Goal
Install your very own Python and keep everything under control.
Questions to David Rotermund
Windows
We need to download a suitable Python version from https://www.python.org. In the case we want to use PyTorch check here or TensorFlow check here we need to check if the Python version is okay.
I downloded this file: https://www.python.org/ftp/python/3.11.7/python-3.11.7-amd64.exe
Select "Add python.exe to Path" and then press "Install Now".
We need to update pip first:
python.exe -m pip install --upgrade pip
Numba
pip install numpy
pip install numba
Package | |
---|---|
numba | Numba is an open source JIT compiler that translates a subset of Python and NumPy code into fast machine code. |
Basic Packages you want to install
pip3 install numpy scipy pandas flake8 pep8-naming black matplotlib seaborn ipython jupyterlab mypy dataclasses-json dataconf ipympl pywavelets scikit-image opencv-python scikit-learn tqdm argh sympy jsmin pybind11 pybind11-stubgen pigar asciichartpy natsort ipykernel
PyTorch
Check here for a installation configurator.
CPU only
pip3 install torch torchvision torchaudio torchtext
NVidia GPU
pip3 install torch torchvision torchaudio torchtext --index-url https://download.pytorch.org/whl/cu121
TensorFlow
CPU only
pip install tensorflow
NVidia GPU
python3 -m pip install tensorflow[and-cuda]