python mysql配置问题

python mysql配置问题,python,mysql,django,macos,Python,Mysql,Django,Macos,我想让django在雪豹上工作。到目前为止,我已经安装了mysql 64位、Python2.7 64位和django 1.2.1。现在我正在尝试安装mysql-python-1.2.3;一开始我遇到了问题,因为我没有安装安装工具,在尝试通过执行这些命令来安装它时,我已经安装了安装工具 python setup.py build python setup.py install 这是我得到的 running build running build_py creating build/lib.

我想让django在雪豹上工作。到目前为止,我已经安装了mysql 64位、Python2.7 64位和django 1.2.1。现在我正在尝试安装mysql-python-1.2.3;一开始我遇到了问题,因为我没有安装安装工具,在尝试通过执行这些命令来安装它时,我已经安装了安装工具

python setup.py build

python setup.py install
这是我得到的

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
有什么想法吗

我做错什么了吗

谢谢


Mauro

冒着指出显而易见的风险,您没有写入
构建
目录的权限。检查并更改目录权限(使用
chmod
命令)或作为管理员用户进行设置。

您需要使用
sudo

sudo setup.py build
sudo setup.py install

您可能只想使用sqlite。

谢谢,但是构建目录将写入操作系统的何处?我还想说,使用Macports()是在os X上获取这些软件包(并随时间更新)的更简单方法。