相关疑难解决方法(0)

mac os中的pygame安装问题

我有以下安装pygame包的问题.

In file included from src/_numericsurfarray.c:23:
src/pygame.h:106:10: fatal error: 'SDL.h' file not found
#include <SDL.h>
         ^
1 error generated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
Run Code Online (Sandbox Code Playgroud)

系统信息

  • Mac OS-10.9.2
  • python版本 - Python 2.7.5 :: Anaconda 1.6.1(x86_64)

任何建议都会非常感激?谢谢.

python pygame

19
推荐指数
1
解决办法
8878
查看次数

mac osx 10.9.2上的mysql-python:错误:命令'/ usr/bin/clang'失败,退出状态为1

我想将我的django应用程序从sqlite移植到mysql.

但是当我尝试安装mysql-python时,它给了我这个错误:错误:命令'/ usr/bin/clang'失败,退出状态为1

我环顾四周寻找线索并尝试了这个似乎适用于大多数人的解决方案:

sudo su export CFLAGS = -Qunused-arguments export CPPFLAGS = -Qunused-arguments pip install MySQL-python

完整的错误日志在这里:

pip install MySQL-python
Downloading/unpacking MySQL-python
  Running setup.py egg_info for package MySQL-python

Installing collected packages: MySQL-python
  Running setup.py install for MySQL-python
    building '_mysql' extension
    /usr/bin/clang -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Qunused-arguments -Qunused-arguments -Dversion_info=(1,2,5,'final',1) -D__version__=1.2.5 -I/usr/local/mysql/include -I/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c _mysql.c -o build/temp.macosx-10.6-intel-2.7/_mysql.o -Os -g -fno-strict-aliasing -arch x86_64
    xcrun: error: active developer path ("/Users/deeptichopra/Desktop/Applications and Softwares/Xcode.app/Contents/Developer") does not exist, use xcode-select to change
    error: command …
Run Code Online (Sandbox Code Playgroud)

python mysql macos mysql-python

10
推荐指数
1
解决办法
1万
查看次数

pip install pygame - 找不到 SDL.h 文件

MacOS 塞拉利昂

?  fun_python $ pip --version
pip 9.0.1 from /Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages (python 3.5)
Run Code Online (Sandbox Code Playgroud)

pip install pygame给我以下错误:src/scrap.c:27:10: fatal error: 'SDL.h' file not found, error: command '/usr/bin/clang' failed with exit status 1, #include "SDL.h"。我在/usr/include/...文件夹树下没有看到这个 SDL/SDL.h 文件。

给了我以下错误。

?  fun_python $ pip install pygame
Collecting pygame
  Downloading pygame-1.9.3.tar.gz (3.0MB)
    100% |????????????????????????????????| 3.0MB 490kB/s
Installing collected packages: pygame
  Running setup.py install for pygame ... error
    Complete output from command /Library/Frameworks/Python.framework/Versions/3.5/bin/python3.5 -u -c "import setuptools, tokenize;__file__='/private/var/folders/lx/smky81v534q9ydghqkjbkqv80000gp/T/pip-build-to90wzsv/pygame/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', …
Run Code Online (Sandbox Code Playgroud)

python pygame sdl pip file-not-found

9
推荐指数
1
解决办法
6712
查看次数

标签 统计

python ×3

pygame ×2

file-not-found ×1

macos ×1

mysql ×1

mysql-python ×1

pip ×1

sdl ×1