A
A
Andrey2015-02-18 07:56:11
Django
Andrey, 2015-02-18 07:56:11

How to set up a mac for developing Django applications?

Good afternoon!
I’ve only been working with a MacBook for a couple of days, I really want to set up Django and all the components, but the first time it’s somehow hard!
Python, Mysql installed from the site without problems, now I'm trying to install mysql-python via pip, it gives an error:

Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/private/tmp/pip_build_root/mysql-python/setup.py", line 17, in <module>

    metadata, options = get_config()

  File "setup_posix.py", line 43, in get_config

    libs = mysql_config("libs_r")

  File "setup_posix.py", line 25, in mysql_config

    raise EnvironmentError("%s not found" % (mysql_config.path,))

EnvironmentError: mysql_config not found

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /private/tmp/pip_build_root/mysql-python
Storing debug log for failure in /Users/andrey/.pip/pip.log

Tell me how can I fix it?
Is it correct that I downloaded and installed Python, Mysql from the sites or should I have used brew ?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
V
Vit, 2015-02-18
@fornit1917

Use Vagrant , Luke

O
Oscar Django, 2015-02-18
@winordie

stackoverflow.com/questions/25459386/mac-os-x-envi... -- have you looked?

K
KIN1991, 2015-02-18
@KIN1991

do not torment Mac OS with this, install a virtual machine and run through it

I
Igor Lyutoev, 2015-02-18
@loader777

I first set up this tutorial - hackercodex.com/guide/python-development-environme...

D
Don Kaban, 2015-02-18
@donkaban

brew.sh

N
Nikita Chukov, 2015-02-20
@chukov

Yesterday I just treated the same thing with you.
vi ~/.bash_profile
export DYLD_LIBRARY_PATH=/usr/local/mysql/lib/
export PATH=$PATH:/usr/local/mysql/bin

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question