Installing running requirements for AI applications (Windows)


Updated:

Python

All versions https://www.python.org/downloads/windows/ -

Download all versions from "Download Windows installer (64-bit)":

3.8.10, 3.9.13, 3.10.11, 3.11.9, 3.12.6, 3.13.0

Install with "Add Python to PATH"

To install the default Python version - set in Environment Variables... > User variables for ... > Edit... - Path > make to the top of the list - Python\Python310\Scripts\ and Python\Python310\ (For 3.10.11 example)

FFMPEG

Download https://www.gyan.dev/ffmpeg/builds/ Download latest release builds - ffmpeg-release-full.7z and unpack it to C:\Program Files\ffmpeg\

Add in Environment Variables > System varibles > Path > New and add path - C:\Program Files\ffmpeg\bin

cuDNN

Download https://developer.nvidia.com/cudnn-downloads?target_os=Windows&target_arch=x86_64&target_version=10&target_type=exe_local

Download click cudnn_9.4.0_windows.exe and install it

Install - Select > Custom (Advanced) and unchecked - cuDNN Samples > install

Visual C++ Redistributable Runtimes

Download - https://www.techpowerup.com/download/visual-c-redistributable-runtime-package-all-in-one/

Download zip archive > extract > run install_all.bat

CUDA Toolkit

Download (12.6) https://developer.nvidia.com/cuda-downloads?target_os=Windows&target_arch=x86_64&target_version=11&target_type=exe_network

Download (11.8) https://developer.nvidia.com/cuda-11-8-0-download-archive?target_os=Windows&target_arch=x86_64&target_version=11&target_type=exe_network

Install - Select > Custom (Advanced) and unchecked:

NVIDIA Geforce Experience comp..., Other components, Driver components

Install (If you already have installed latest Nvidia Drivers that can be replace to older version)

To install the default CUDA Toolkit version - set in Environment Variables... > System variables > Path > make to the top of the list - C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin and C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp (For CUDA Toolkit 11.8 example)

Microsoft Build Tools - Visual Studio

Download - https://visualstudio.microsoft.com/ (Visual Studio) and https://visualstudio.microsoft.com/visual-cpp-build-tools/ (Build Tools)

Install for Visual Studio - Desktop Development with C++

Install for Build Tools - Desktop Development with C++

Install a Desktop Development with C++ (If needed after installation select the latest version in Individual components to update it)

Git

Download - https://git-scm.com/downloads/win

Install - Git-2.46.2-64-bit

Note: That article for general requirements installation. Some tools can require different version and other options.

Problem solver:

AI tool can't find a cl.exe (Build Tool Compiler). Solve - Add to system environments > path - C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.41.34120\bin\Hostx64\x64\ and run a vcvars64.bat in - C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\Build

2
0

Comments