###前提・実現したいこと
mac os X EI Capitanでpygameをインストールしようとしています。
様々なサイトを見ながら、行っていましたが、最終的に
http://hine.hatenablog.com/entry/2015/10/28/170356
こちらのサイト様を見ながら行っておりました。
brew install sdl sdl_image sdl_mixer sdl_ttf portmidi
brew install mercurial
までは問題なくコマンドを実行できるのですが、
pip install hg+http://bitbucket.org/pygame/pygame
を実行す流すと次のようなエラーがでます。
自分ではエラーの内容が全くわからず、ご教授いただけると助かります。
###発生している問題・エラーメッセージ
3 warnings generated. cc -bundle -undefined dynamic_lookup -arch i386 -arch x86_64 -Wl,-F. build/temp.macosx-10.11-intel-2.7/src/sdlmain_osx.o -L/usr/local/lib -lSDLmain -lSDL -o build/lib.macosx-10.11-intel-2.7/pygame/sdlmain_osx.so -Wl,-framework,Cocoa ld: warning: ld: warning: ignoring file /usr/local/lib/libSDL.dylib, file was built for x86_64 which is not the architecture being linked (i386): /usr/local/lib/libSDL.dylibignoring file /usr/local/lib/libSDLmain.a, file was built for archive which is not the architecture being linked (i386): /usr/local/lib/libSDLmain.a running install_lib copying build/lib.macosx-10.11-intel-2.7/pygame/__init__.py -> /Library/Python/2.7/site-packages/pygame error: could not delete '/Library/Python/2.7/site-packages/pygame/__init__.py': Permission denied ---------------------------------------- Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/p4/17d_cp791454bnxtsvz_y5r00000gn/T/pip-yg2yaE-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/p4/17d_cp791454bnxtsvz_y5r00000gn/T/pip-uMtGxL-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/p4/17d_cp791454bnxtsvz_y5r00000gn/T/pip-yg2yaE-build/
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/08/29 08:14