Software requirements
Now we have the hardware prepared, Stable Diffusion requires additional software to support its execution and provide better control using Python. This section will provide you with the steps to prepare the software environment.
CUDA installation
If you are using Microsoft Windows, please install Microsoft Visual Studio (VS) [5] first. VS will install all other dependent packages and binary files for CUDA. You can simply choose the latest Community version of VS for free.
Now, go to the NVIDIA CUDA download page [1] to get the CUDA installation file. The following screenshot shows an example of selecting CUDA for Windows 11:
Figure 2.1: Selecting the CUDA installation download file for Windows
Download the CUDA installation file, then double-click this file to install CUDA like any other Windows application.
If you are using a Linux operating system, installing CUDA for Linux is slightly different. You can execute the...