Skip to content Skip to sidebar Skip to footer

Getting "error: Command Errored Out With Exit Status 1:" When Trying To Install Mysql

I get this error when I try to install mysql package for python: C:\Windows\system32>pip install mysql Collecting mysql Using cached https://files.pythonhosted.org/packages/b

Solution 1:

I had the same problem. Instead of installing mysql I installed a MySQL connector to connect to MySQL database:

pip install mysql-connector-python

This is how the Python script looks like to connects to MySQL:

import mysql.connectormydb= mysql.connector.connect(
  host="localhost",
  user="yourusername",
  passwd="yourpassword"
)

Post a Comment for "Getting "error: Command Errored Out With Exit Status 1:" When Trying To Install Mysql"