on Linux

Since Raspbian, the Pis' operating system, is Linux, and derived from Debian, it should be very easy to use other Debian-based Linux systems, such as Debian itself, or Ubuntu, for the examples on this website.

It may be that not all required python packages are installed. For distributions using dpkg, then

sudo apt-get install python3-numpy python3-matplotlib

should fix this.

Similarly the C compiler might not be installed, and can be installed with

sudo apt-get install gcc

For RPM-based distributions, such as OpenSuSE, the commands are probably

  sudo zypper install python3-numpy python3-matplotlib 
  sudo zypper install gcc

or one can use the install software menu item.

Otherwise, the comments on Pi page should apply.