The following SO question was a helpful clue: Python 3 ImportError: No module named ‘ConfigParser’. Update for those using Python3: You can simply use conda install mysqlclient to install the libraries required to use MySQLdb as it currently exists. How to install mysqldb library in Python 3? Afterwords execute the following command: Edit ~/.profile: (Might not be necessary in Mac OS X 10.10) Copy and paste the following two line Save and exit. Step 2: Extract your downloaded package: Step 3: Inside the folder, clean the package: COUPLE OF EXTRA STEPS, (from this comment) How to install MySQL on Mac OS X Mavericks?Ī quick and easy way for Mac OS X 10.8 (Mountain Lion), 10.9 (Mavericks), 10.10 (Yosemite), and 10.11 (El Capitan): I assume you have XCode, its command line tools, Python, and MySQL installed. Step 1: Download the latest MySQL for Python adapter from SourceForge. Step 0: Before I start, I assume that you have MySQL, Python, and GCC installed on the mac. Is it possible to install mysqldb on OS X?įirst off, the author (still?) of MySQLdb says here that one of the most pernicious problems is that OS X comes installed with a 32 bit version of Python, but most average joes (myself included) probably jump to install the 64 bit version of MySQL. To solve this error, make sure you have installed both Python 3 and pip3 onto your system. It features a unique combination of the advanced editing, analysis, debugging, and profiling functionality of a comprehensive development tool with the data exploration, interactive. The pip: command not found error is raised if you do not have pip installed on your system, or if you’ve accidentally used the pip command instead of pip3. Spyder is a free and open source scientific environment written in Python, for Python, and designed by and for scientists, engineers and data analysts.
0 Comments
Leave a Reply. |