Thank you for your reply. When I tried 'pip install mysql-connector' I got a 'externally managed environment' error, and that was the reason I created a virtual environment as stated in the error message. However, your remark made me do another Google search that lead to this: 'sudo mv /usr/lib/python3.11/EXTERNALLY-MANAGED /usr/lib/python3.11/EXTERNALLY-MANAGED.old'. This got rid of the externally managed error, and I was able to install mysql-connector without venv. Idk if this is a 'dirty' solution or not, but it worked. Thank you for pointing me in the right direction!