79376065

Date: 2025-01-21 22:15:23
Score: 1
Natty:
Report link

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!

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Whitelisted phrase (-1): it worked
  • Long answer (-0.5):
  • No code block (0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: cabwav