命令“python设置.pyegg_info“失败,错误代码1位于/private/tmp/pipbuildgrm0q7k2/astroquery中

2024-10-05 14:23:24 发布

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

我正在尝试安装一个名为auromat(https://pypi.python.org/pypi/auromat)的程序。我有困难设置.py和C编译器错误。我是一个Mac用户,我有Xcode和命令行工具,所以我知道我有gcc(4.2.1)。但奇怪的是我找不到设置.py但是我得到了一个C编译器错误。我将非常感谢你的建议(注:我确实已经遵循了一些建议,但似乎没有一个对我有用)。 以下是错误日志:

The C compiler used to compile Python gcc-4.2, and which is normally used to compile C extensions, is not available. You can explicitly specify which compiler to use by setting the CC environment variable, for example:

CC=gcc python setup.py <command>

or if you are using MacOS X, you can try:

CC=clang python setup.py <command>

Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-build-08eydl5s/astroquery


Tags: topypypiwhich编译器compileris错误