つづき
http://d.hatena.ne.jp/nishiohirokazu/20091228/1261999011 のつづき
macholibの1.2.1以上がrequireと書いてあるようなのでport search macholibしてみて、sudo port install py26-macholibすることにした。
~$ sudo port install py26-macholib Password: Skipping org.macports.activate (py26-macholib ) since this port is already active ---> Cleaning py26-macholib
ん?あ、よく見たら
py26-macholib @1.1 (python, devel) Mach-O header analysis and editing
portのはバージョンが古いや。easy_installで入れようとしたら2.5に入れようとして「もう最新だ」と言われる。ふむ。
http://d.hatena.ne.jp/sDaigo/20091116/1258376520
id:Voluntas 2009/11/28 23:35 つ virtualenv
orz
~$ port search virtualenv py25-virtualenv @1.3.2 (python) Virtual Python Environment builder py26-virtualenv @1.3.2 (python, devel) Virtual Python Environment builder
ふむふむ。いれた。でvirtualenvってどうやって使うんだ。
distutils, setuptools, distribute, pip, virtualenv, buildout — 清水川Web
virtualenvで新しい環境を作ってそこにpygameを入れようとしたら今度はSDL.hがないと言われた…前はどうやって入れたんだったかなぁ。
Hunting dependencies... Framework SDL not found Framework SDL_ttf not found Framework SDL_image not found Framework SDL_mixer not found Framework smpeg not found PNG : found JPEG : found SCRAP : not found PORTMIDI: not found Framework CoreMidi found If you get compiler errors during install, doublecheck the compiler flags in the "Setup" file. Continuing With "setup.py" warning: no files found matching 'readme.txt' no previously-included directories found matching '*/CVS' no previously-included directories found matching '*/*/CVS' In file included from src/_numericsurfarray.c:23: src/pygame.h:106:17: error: SDL.h: No such file or directory