1

I am getting the below error when trying to pip install mysql:

building '_mysql' extension creating build/temp.macosx-10.6-intel-2.7 /usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Qunused-arguments -Qunused-arguments -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/local/Cellar/mysql/8.0.12/include/mysql -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.6-intel-2.7/_mysql.o _mysql.c:44:10: fatal error: 'my_config.h' file not found #include "my_config.h" ^~~~~~~~~~~~~ 1 error generated. error: command '/usr/bin/clang' failed with exit status 1

Any ideas?

4
  • 1
    Which OS are u on.? Commented Aug 24, 2018 at 10:32
  • High Sierra 10.13.4 Commented Aug 24, 2018 at 10:34
  • You have xcode installed.? If not try xcode-select --install after that install mysql Commented Aug 24, 2018 at 10:36
  • Possible duplicate of Can't install mysql-python (newer versions) in Windows Commented Sep 27, 2018 at 0:56

2 Answers 2

2

you don't have my_config file. It is because you have not installed mysql on your computer. Try to install after setup mysql

Sign up to request clarification or add additional context in comments.

Comments

0
brew remove mysql
brew install [email protected]
brew link --force [email protected]
pip install mysql-python

1 Comment

Explain what is happening here in text, instead of just posting terminal commands

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.