![how to set up python on mac how to set up python on mac](https://i.ytimg.com/vi/lGLEJosLKjQ/maxresdefault.jpg)
I’m having an issue installing MySQL and making it work with python.ġ20408 1:12:12 Setting lower_case_table_names=2 because file system for /usr/local/mysql/data/ is case insensitiveġ20408 1:12:12 Plugin ‘FEDERATED’ is disabled. I’d suggest starting from the Django’s excellent introductory tutorial. If you are not getting any errors at this point, then you are all good to go! On your settings.py remember to set “127.0.0.1” as your preferred db host in case that “localhost” doesn’t work. Moreover if you prefer MAMP, you don’t have to run mysql from /usr/local/mysql.
![how to set up python on mac how to set up python on mac](https://www.maketecheasier.com/assets/uploads/2018/08/run-python-script-macOS-python-launcher-preferences.png)
If you are already using MAMP you still have to follow the above MySQL installation process, as MAMP by default doesn’t include the required header files to build MySQL-python.
![how to set up python on mac how to set up python on mac](https://miro.medium.com/max/2048/0*QelBAqXUcAb9V2gW.png)
You are now ready to build and install MySQL-python:Įdit your ~/.bash_profile, add the following line:Įxport DYLD_LIBRARY_PATH=/usr/local/mysql/lib/ – You should now have mysql installed on /usr/local/mysqlĭownload the latest MySQL-python package hereĮdit site.cfg on your favorite text editor and change the mysql path as below: mysql_config = /usr/local/mysql/bin/mysql_config – At this point I am assuming that you are familiar with the Terminal, so simply execute the following commands on your Downloads folder:ĭownload the latest MySQL (64-bit, tar archive) here
How to set up python on mac mac os x#
Here is a quick setup guide for installing Django and MySQL-python on Mac OS X Lion. Django is an excellent web-framework written in Python.