The error occurs because the linker cannot find mariadbclient.lib during the build. To fix this, either install a precompiled mysqlclient wheel matching your Python version, ensure the MariaDB Connector/C is properly installed with the correct library files and paths, or switch to using pymysql, which requires no compilation.