Em sistemas Debian/Ubuntu, você precisa instalar o pacote python3-venv
usando o seguinte comando:
sudo apt install python3.8-venv
Para rodar em um ambiente virtual python o primeiro código exemplo sem erro:
make run-st
Para rodar em um ambiente virtual python o segundo código exemplo sem erro:
make run-nd
Para rodar em um ambiente virtual python o código com erro:
make run-err
Para limpar o ambiente virtual python:
make clean