Installing MySQL Python on Mac OS X

后端 未结 15 2180
隐瞒了意图╮
隐瞒了意图╮ 2020-11-27 03:02

Long story short, when I write the following:

sudo easy_install MySQL-python

I get the error

EnvironmentError: mysql

15条回答
  •  醉酒成梦
    2020-11-27 03:46

    The issue you are having is that the gcc compiler is not installed on your Mac. It will be installed if you have installed XCode. You will have to download gcc complier and install it manually. Follow the below link and download it -

    https://github.com/downloads/kennethreitz/osx-gcc-installer/GCC-10.7-v2.pkg

    I once had this problem installing Ruby 1.9 and I had to compile ruby for myself because Mountain Lion wasn't supported at that time. After installing the package, verify the install by the command gcc.

提交回复
热议问题