gpt4 book ai didi

centos - 使用 "unable to execute gcc: No such file or directory"安装 python 包失败

转载 作者:太空宇宙 更新时间:2023-11-03 17:13:25 26 4
gpt4 key购买 nike

正在尝试安装 mysql-python。出现以下错误。已经安装了 mysql 和 pythond。任何帮助将不胜感激

[root@uu include]# easy_install mysql-python
Searching for mysql-python
Reading http://cheeseshop.python.org/pypi/mysql-python/
Couldn't find index page for 'mysql-python' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://cheeseshop.python.org/pypi/
Reading http://cheeseshop.python.org/pypi/MySQL-python/1.2.3c1
Reading http://sourceforge.net/projects/mysql-python
Best match: MySQL-python 1.2.3c1
Downloading http://pypi.python.org/packages/source/M/MySQL-python/MySQL-python-1.2.3c1.tar.gz#md5=310dd856e439d070b59ece6dd7a0734d
Processing MySQL-python-1.2.3c1.tar.gz
Running MySQL-python-1.2.3c1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-toQ0nx/MySQL-python-1.2.3c1/egg-dist-tmp-OeN5eG
unable to execute gcc: No such file or directory
error: Setup script exited with error: command 'gcc' failed with exit status 1

最佳答案

这将安装 GCC 和其他经常需要的:

yum groupinstall 'Development Tools'

也可以单独安装,即 yum install gcc

关于centos - 使用 "unable to execute gcc: No such file or directory"安装 python 包失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3088548/

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