Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with installation using pip and with building source #119

Open
nikhileshva opened this issue Sep 22, 2016 · 5 comments
Open

Issues with installation using pip and with building source #119

nikhileshva opened this issue Sep 22, 2016 · 5 comments

Comments

@nikhileshva
Copy link

I get this error when I install it through pip

building '_mysql' extension
creating build/temp.macosx-10.12-intel-2.7
cc -fno-strict-aliasing -fno-common -dynamic -arch i386 -arch x86_64 -g -Os -pipe -fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -arch i386 -arch x86_64 -pipe -Dversion_info=(1,2,4,'beta',4) -D__version__=1.2.4b4 -I/Applications/XAMPP/xamppfiles/include/mysql -I/Applications/XAMPP/xamppfiles/include/mysql/.. -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.12-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 'cc' failed with exit status 1
@lixuemuyangfeng
Copy link

have you figured it out?

@nikhileshva
Copy link
Author

Umm, I don't remember how I solved it. It's almost two years now.

@pchhetri
Copy link

pchhetri commented Aug 8, 2018

Looks like this only supports up to the current legacy version of mysql - version 5.7. Best to probably switch to other connectors: https://stackoverflow.com/a/51351548

Anyways on a Mac the fix was:

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

@lixuemuyangfeng

@aperezalbela
Copy link

Looks like this only supports up to the current legacy version of mysql - version 5.7. Best to probably switch to other connectors: https://stackoverflow.com/a/51351548

Anyways on a Mac the fix was:

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

@lixuemuyangfeng

Please edit typo from:

pip install msyql-python

To:

pip install mysql-python

@methane
Copy link
Collaborator

methane commented Dec 9, 2019

This project is not maintained for a long time. Use pip install mysqlclient instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants