简体   繁体   English

python mysql配置问题

[英]python mysql configuration problem

I'm trying to make django work on snow leopard. 我正在尝试让django在雪豹上工作。 So far I've installed mysql 64 bit installed python 2.7 64 bit and installed django 1.2.1. 到目前为止,我已经安装了mysql 64位,安装了python 2.7 64位,并安装了django 1.2.1。 Now I'm trying to install mysql-python-1.2.3; 现在我正在尝试安装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 毛罗

You need to use sudo 您需要使用sudo

sudo setup.py build
sudo setup.py install

You might just want to use sqlite. 您可能只想使用sqlite。

At the risk of pointing out the obvious, you do not have permission to write to the build directory. 冒着指出显而易见的风险,您没有权限写入build目录。 Check and change the directory permissions (with the chmod command) or do the setup as an admin user. 检查并更改目录权限(使用chmod命令),或以管理员用户身份进行设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM