Mauro74
Mauro74

Reputation: 4826

python mysql configuration problem

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

Upvotes: 0

Views: 215

Answers (2)

Sam 山
Sam 山

Reputation: 42865

You need to use sudo

sudo setup.py build
sudo setup.py install

You might just want to use sqlite.

Upvotes: 2

Arkady
Arkady

Reputation: 15059

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.

Upvotes: 0

Related Questions