如何安装mysqlcen

2024-09-19 23:32:25 发布

您现在位置:Python中文网/ 问答频道 /正文

我已经安装了mysql-devel,它没有解决问题。你知道吗

我正在尝试执行以下命令:

sudo easy_install-2.7 MySQL-python
sudo pip2.7 install  MySQL-python

在第一张照片中我看到:

error: Setup script exited with error: command 'gcc' failed with exit status 1

在第二个例子中:

Command "/usr/local/bin/python2.7 -u -c "import setuptools, tokenize;file='/tmp/pip-build-nySVuQ/MySQL-python/setup.py';f=getattr(tokenize, 'open', open)(file);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, file, 'exec'))" install --record /tmp/pip-eC4DGP-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-nySVuQ/MySQL-python/

有解决的可能吗?你知道吗

提前谢谢


Tags: installpipbuildwithmysqlsudocodeerror