0

I'm currently setting up a python/django virtualenv on my Mac OS X 10.8.2, which I am trying to use with MySQL. However, when I run "$ python manage.py syncdb" I get an error message that says (clipped):

"....
....
....no suitable image found.  Did find:
            /Users/jb/.virtualenvs/MGV/lib/python2.7/site-packages/_mysql.so: mach-o, but wrong architecture"

After running "$ file $(which mysql)" and "$ file $(which python)", I found that this issue is due to my virtualenv's Python version being x86_64 and its MySQL version being i386 (Also see: http://sourceforge.net/p/mysql-python/discussion/70460/thread/43053990/). So I'm trying to resolve this by uninstalling the 32-bit MySQL and replacing it with 64-bit. I have found many solutions to uninstalling MySQL on my Mac but can't find any solutions on how to uninstall&reinstall MySQL specifically on a virtualenv. I'm a relatively new programmer so explicit instructions are very much appreciated! :)

4

0 に答える 0