0

I'm trying to make django work on snow leopard. So far I've installed mysql 64 bit installed python 2.7 64 bit and installed django 1.2.1. Now I'm trying to install mysql-python-1.2.3; at the beginning I had problems because I hadn't installed the setup tool, having done that when try to install it by executing these command

python setup.py build

python setup.py install

here's what I got

running build

running build_py

creating build/lib.macosx-10.5-fat3-2.7

error: could not create 'build/lib.macosx-10.5-fat3-2.7': Permission denied

Any idea?

Am I doing something wrong?

Thanks

Mauro

2 Answers 2

2

You need to use sudo

sudo setup.py build
sudo setup.py install

You might just want to use sqlite.

Sign up to request clarification or add additional context in comments.

1 Comment

I'd also say that using Macports (macports.org) is the easier way to get these packages on OS X (and update them over time).
0

At the risk of pointing out the obvious, you do not have permission to write to the build directory. Check and change the directory permissions (with the chmod command) or do the setup as an admin user.

1 Comment

thanks, but where in the os the build directory will be written?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.