This is a much discussed issue for OSX 10.6 users, but I haven't been able to find a solution that works. Here's my setup: Python 2.6.1 64bit Django 1.2.1 MySQL 5.1.47 osx10.6 64bit I create a virtualenvwrapper with -no-site-packages, then installed Django.
I had the same error and pip install MySQL-python solved it for me. Alternate installs:.
Django No Module Named Urls
If you don't have pip, easyinstall MySQL-python should work. If your python is managed by a packaging system, you might have to use that system (e.g.
Please note that only limited models are available in Traditional Chinese. Choose a product series 2. Choose a product Calculator / Electronic Dictionary Manual Select Table 1. Choose a product series 3. Choose a product *1. Canon pixma printer installation.
Sudo apt-get install.) Below, Soli notes that if you receive the following error: EnvironmentError: mysqlconfig not found. Then you have a further system dependency issue. Solving this will vary from system to system, but for Debian-derived systems: sudo apt-get install python-mysqldb. The following worked perfectly for me, running Ubuntu 13.10 64-bit: sudo apt-get install libmysqlclient-dev sudo apt-get install python-dev Now, navigate to your virtualenv (such as env folder) and execute the following: sudo./bin/pip install mysql-python I actually found the in a separate question and I am quoting it below: If you have created the virtualenv with the -no-site-packages switch (the default), then system-wide installed additions such as MySQLdb are not included in the virtual environment packages. You need to install MySQLdb with the pip command installed with the virtualenv. Either activate the virtualenv with the bin/activate script, or use bin/pip from within the virtualenv to install the MySQLdb library locally as well. Alternatively, create a new virtualenv with system site-packages included by using the -system-site-package switch.
I think this should also work with OSX. The only problem would be getting an equivalent command for installing libmysqlclient-dev and python-dev as they are needed to compile mysql-python I guess.
Hope this helps. I had the same problem on OSX 10.6.6. But just a simple easyinstall mysql-python on terminal did not solve it as another hiccup followed: error: command 'gcc-4.2' failed with exit status 1. Apparently, this issue arises after upgrading from XCode3 (which is natively shipped with OSX 10.6) to XCode4.
This newer ver removes support for building ppc arch. If its the same case, try doing as follows before easyinstall mysql-python sudo bash export ARCHFLAGS='-arch i386 -arch x8664' rm -r build python setup.py build python setup.py install Many thanks to Ned Deily for this solution.
Solved: Hi, I just got this laptop Inspiron 14 N4050. I just want to know can i change the wireless driver from wireless 1701 802.11b/g/n (existing.
Get drivers and downloads for your Dell Inspiron 14 N4050. Download and install the latest drivers, firmware and software.
When I set up Django development environment for PyCharm in Mac OS X Mountain Lion with python, mysql, sequel pro application I got error same as owner of this thread. However, my answer for them who is running python-mysqldb under Mac OS Mountain Lion x86x64 (MySql and Python also should be same architecture) and already tried everything like pip and etc. In order fix this problem do following steps:.
Download MySql for Python from. Untar downloaded file. In terminal window do following: tar xvfz downloade.tar. cd /to untared directory. Run sudo python setup.py install.
If you get error something like this: “Environment Error: /usr/local/bin/mysqlconfig not found” then try to add path ass follows: “export PATH=$PATH:/usr/local/mysql/bin”. But id did not helped to me and I found another solution. In the end of command execution error output which looks like this: File “/pathtofile/MySQL-python-1.2.4b4/setupposix.py”, line 25, in mysqlconfig raise EnvironmentError(“%s not found”% (mysqlconfig.path,)). Open setupposix.py with vim and go to line 25 (In your case it can be different unless if it is same version).
My answer is similar to @Ron-E, but I got a few more errors/corrections so I’m putting my steps below for Mac OSX on Mavericks and Python 2.7.6. Install Python mysql package (if you get a success message, then ignore the below steps) pip install mysql-python. When I did the above, I got the error “EnvironmentError: mysqlconfig not found” To fix this, I did the below in terminal: export PATH=$PATH:/usr/local/mysql/bin. When I reran step 1, I get a new error “error: command ‘cc’ failed with exit status 1” To fix this, I did the below in terminal: export CFLAGS=-Qunused-arguments export CPPFLAGS=-Qunused-arguments. I reran step 1 and got the success message ‘Successfully installed mysql-python’!