gpt4 book ai didi

mysql-python - 无法在centos Python2.7上安装MysqlDB

转载 作者:行者123 更新时间:2023-12-04 04:59:42 27 4
gpt4 key购买 nike

我有个问题 。我无法安装 MysqlDB。

操作系统:CentOs6.8 x64
python :2.7.6

pip2.7 install mysql-python

pip install mysql-python

这是我的错误:

Command "/usr/local/bin/python2.7 -u -c "import setuptools, tokenize;file='/tmp/pip-build-rgqmTQ/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-G4kWRa-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-rgqmTQ/mysql-python/

最佳答案

尝试这个
dind.biz

# yum install python-devel mysql-devel

# pip install mysql-python

关于mysql-python - 无法在centos Python2.7上安装MysqlDB,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42698140/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com