〜/ Python2.7/にPython2.7をローカルにインストールしていて、psycopg2モジュールが必要です。しかし、easy_installを使用してインストールしたり、手動でコンパイルしたりしようとすると、
error: invalid Python installation: unable to open /usr/local/lib/python2.7/config/Makefile (No such file or directory)
〜/ Python2.7 / Lib/sysconfig.pyの行をから変更しようとしました
return os.path.join(get_path('stdlib'), "config", "Makefile")
に
return '/home/foo/Python2.7/Makefile'
効果はありません。これを歩き回るにはどうすればよいですか?