【发布时间】:2023-03-31 15:34:02
【问题描述】:
我正在设置 os X 10.7。
我正在使用 Python 的默认安装:
/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/
我使用名为 easy_install 的基于 Python 的包管理器。 Easy_install 好像找不到编译器。
编辑:当我尝试安装 MySQL-python 时出现此错误:
$ sudo easy_install MySQL-python
Password:
Searching for MySQL-python
Reading http://pypi.python.org/simple/MySQL-python/
Reading http://sourceforge.net/projects/mysql-python/
Reading http://sourceforge.net/projects/mysql-python
Best match: MySQL-python 1.2.3
Downloading http://download.sourceforge.net/sourceforge/mysql-python/MySQL-python-1.2.3.tar.gz
Processing MySQL-python-1.2.3.tar.gz
Running MySQL-python-1.2.3/setup.py -q bdist_egg --dist-dir /tmp/easy_install-P9H9WX/MySQL-python-1.2.3/egg-dist-tmp-rRTfZL
warning: no files found matching 'MANIFEST'
warning: no files found matching 'ChangeLog'
warning: no files found matching 'GPL'
unable to execute llvm-gcc-4.2: No such file or directory
error: Setup script exited with error: command 'llvm-gcc-4.2' failed with exit status 1
错误:安装脚本退出并出现错误:命令“llvm-gcc-4.2”失败,退出状态为 1
Xcode 4.1 使用了 GCC,但 Xcode 4.2 似乎发生了变化。
Apple 希望我们使用什么编译器? 如何设置配置以便编译 OSS?
【问题讨论】:
-
你想用easy_install安装什么包?
-
命令“失败”,不是“未找到”。向我们展示更多上下文/日志以了解您的问题。
-
我有同样的问题,我尝试了 Xcode 和 GCC 解决方案!解决办法是什么?我需要它!
标签: python osx-lion llvm easy-install