easy_installをインストールする

easy_installが入っていないマシンがあったので入れようとしたけど、入れ方を忘れたのでメモです

easy_installというのはrubyで言えばgem、perlで言えばpecl(perlはわからないので曖昧・・・)でライブラリを簡単にインストールするためにものです。


$ curl -O http://peak.telecommunity.com/dist/ez_setup.py
$ python ez_setup.py

これでインストールができます。
今(2011年07月21日現在)はリンク切れしていませんが、リンク切れした場合は探してください。
ドメインは変わらないと思うので。

例としてsimplejsonをインストールしてみます

# easy_install simplejson
Searching for simplejson
Reading http://pypi.python.org/simple/simplejson/
Reading http://undefined.org/python/#simplejson
Reading http://github.com/simplejson/simplejson
Best match: simplejson 2.1.6
Downloading http://pypi.python.org/packages/source/s/simplejson/simplejson-2.1.6.tar.gz#md5=2f8351f6e6fe7ef25744805dfa56c0d5
Processing simplejson-2.1.6.tar.gz
Running simplejson-2.1.6/setup.py -q bdist_egg --dist-dir /tmp/easy_install-lbjL28/simplejson-2.1.6/egg-dist-tmp-JvofQd
simplejson/_speedups.c:1:20: error: Python.h: そのようなファイルやディレクトリはありません
simplejson/_speedups.c:2:26: error: structmember.h: そのようなファイルやディレクトリはありません
simplejson/_speedups.c:6: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c:8: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c: In function ‘json_PyOS_string_to_double’:
simplejson/_speedups.c:10: 警告: implicit declaration of function ‘assert’
simplejson/_speedups.c:10: error: ‘NULL’ undeclared (first use in this function)
simplejson/_speedups.c:10: error: (Each undeclared identifier is reported only once
simplejson/_speedups.c:10: error: for each function it appears in.)
simplejson/_speedups.c:11: error: ‘overflow_exception’ undeclared (first use in this function)
simplejson/_speedups.c:12: 警告: implicit declaration of function ‘PyFPE_START_PROTECT’
simplejson/_speedups.c:12: error: expected expression before ‘return’
simplejson/_speedups.c:13: error: expected ‘;’ before ‘x’
simplejson/_speedups.c:14: 警告: implicit declaration of function ‘PyFPE_END_PROTECT’
simplejson/_speedups.c:15: error: expected ‘;’ before ‘return’
simplejson/_speedups.c: トップレベル:
simplejson/_speedups.c:49: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyScannerType’
simplejson/_speedups.c:50: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyEncoderType’
simplejson/_speedups.c:51: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:54: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
simplejson/_speedups.c:65: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘scanner_members’
simplejson/_speedups.c:77: error: expected specifier-qualifier-list before ‘PyObject_HEAD’
simplejson/_speedups.c:92: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘encoder_members’
simplejson/_speedups.c:106: error: expected ‘)’ before ‘c’
simplejson/_speedups.c:107: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:111: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:114: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:116: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:118: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:120: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:123: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:125: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:127: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:131: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:133: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:135: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:137: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c:137: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c:139: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c:139: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c:141: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c:141: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c:142: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:145: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c:146: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:149: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:150: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:152: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:166: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:175: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:183: error: expected ‘)’ before ‘c’
simplejson/_speedups.c:221: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:279: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:366: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c: In function ‘raise_errmsg’:
simplejson/_speedups.c:370: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:370: error: ‘JSONDecodeError’ undeclared (first use in this function)
simplejson/_speedups.c:370: error: ‘NULL’ undeclared (first use in this function)
simplejson/_speedups.c:371: error: ‘PyObject’ undeclared (first use in this function)
simplejson/_speedups.c:371: error: ‘exc’ undeclared (first use in this function)
simplejson/_speedups.c:373: error: ‘decoder’ undeclared (first use in this function)
simplejson/_speedups.c:373: 警告: implicit declaration of function ‘PyImport_ImportModule’
simplejson/_speedups.c:376: 警告: implicit declaration of function ‘PyObject_GetAttrString’
simplejson/_speedups.c:377: 警告: implicit declaration of function ‘Py_DECREF’
simplejson/_speedups.c:381: 警告: implicit declaration of function ‘PyObject_CallFunction’
simplejson/_speedups.c:381: error: ‘s’ undeclared (first use in this function)
simplejson/_speedups.c:381: error: ‘_convertPyInt_FromSsize_t’ undeclared (first use in this function)
simplejson/_speedups.c:383: 警告: implicit declaration of function ‘PyErr_SetObject’
simplejson/_speedups.c: トップレベル:
simplejson/_speedups.c:388: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:406: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:424: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:465: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:673: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:852: error: expected ‘)’ before string constant
simplejson/_speedups.c:864: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:895: error: expected ‘)’ before string constant
simplejson/_speedups.c:900: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:920: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:928: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:945: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:961: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:1108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:1255: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:1327: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:1399: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:1425: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:1528: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:1619: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:1719: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:1818: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:1849: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:1867: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:1935: error: expected ‘)’ before string constant
simplejson/_speedups.c:1938: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyScannerType’
simplejson/_speedups.c:1981: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:2001: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:2043: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:2067: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:2101: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:2125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:2136: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:2145: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c:2145: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c: In function ‘encoder_listencode_obj’:
simplejson/_speedups.c:2149: 警告: implicit declaration of function ‘Py_EnterRecursiveCall’
simplejson/_speedups.c:2152: error: ‘obj’ undeclared (first use in this function)
simplejson/_speedups.c:2152: error: ‘Py_None’ undeclared (first use in this function)
simplejson/_speedups.c:2152: error: ‘Py_True’ undeclared (first use in this function)
simplejson/_speedups.c:2152: error: ‘Py_False’ undeclared (first use in this function)
simplejson/_speedups.c:2153: error: ‘PyObject’ undeclared (first use in this function)
simplejson/_speedups.c:2153: error: ‘cstr’ undeclared (first use in this function)
simplejson/_speedups.c:2153: 警告: implicit declaration of function ‘_encoded_const’
simplejson/_speedups.c:2154: error: ‘NULL’ undeclared (first use in this function)
simplejson/_speedups.c:2155: 警告: implicit declaration of function ‘_steal_list_append’
simplejson/_speedups.c:2155: error: ‘rval’ undeclared (first use in this function)
simplejson/_speedups.c:2157: 警告: implicit declaration of function ‘PyString_Check’
simplejson/_speedups.c:2157: 警告: implicit declaration of function ‘PyUnicode_Check’
simplejson/_speedups.c:2159: error: ‘encoded’ undeclared (first use in this function)
simplejson/_speedups.c:2159: 警告: implicit declaration of function ‘encoder_encode_string’
simplejson/_speedups.c:2163: 警告: implicit declaration of function ‘PyInt_Check’
simplejson/_speedups.c:2163: 警告: implicit declaration of function ‘PyLong_Check’
simplejson/_speedups.c:2164: 警告: implicit declaration of function ‘PyObject_Str’
simplejson/_speedups.c:2168: 警告: implicit declaration of function ‘PyFloat_Check’
simplejson/_speedups.c:2169: 警告: implicit declaration of function ‘encoder_encode_float’
simplejson/_speedups.c:2173: 警告: implicit declaration of function ‘PyList_Check’
simplejson/_speedups.c:2173: 警告: implicit declaration of function ‘PyTuple_Check’
simplejson/_speedups.c:2174: error: too many arguments to function ‘encoder_listencode_list’
simplejson/_speedups.c:2176: 警告: implicit declaration of function ‘PyDict_Check’
simplejson/_speedups.c:2177: error: too many arguments to function ‘encoder_listencode_dict’
simplejson/_speedups.c:2179: error: ‘PyEncoderObject’ has no member named ‘use_decimal’
simplejson/_speedups.c:2179: 警告: implicit declaration of function ‘PyObject_TypeCheck’
simplejson/_speedups.c:2179: error: ‘DecimalTypePtr’ undeclared (first use in this function)
simplejson/_speedups.c:2185: error: ‘ident’ undeclared (first use in this function)
simplejson/_speedups.c:2186: error: ‘newobj’ undeclared (first use in this function)
simplejson/_speedups.c:2187: error: ‘PyEncoderObject’ has no member named ‘markers’
simplejson/_speedups.c:2189: 警告: implicit declaration of function ‘PyLong_FromVoidPtr’
simplejson/_speedups.c:2192: 警告: implicit declaration of function ‘PyDict_Contains’
simplejson/_speedups.c:2192: error: ‘PyEncoderObject’ has no member named ‘markers’
simplejson/_speedups.c:2195: 警告: implicit declaration of function ‘PyErr_SetString’
simplejson/_speedups.c:2195: error: ‘PyExc_ValueError’ undeclared (first use in this function)
simplejson/_speedups.c:2199: 警告: implicit declaration of function ‘PyDict_SetItem’
simplejson/_speedups.c:2199: error: ‘PyEncoderObject’ has no member named ‘markers’
simplejson/_speedups.c:2204: 警告: implicit declaration of function ‘PyObject_CallFunctionObjArgs’
simplejson/_speedups.c:2204: error: ‘PyEncoderObject’ has no member named ‘defaultfn’
simplejson/_speedups.c:2206: 警告: implicit declaration of function ‘Py_XDECREF’
simplejson/_speedups.c:2209: error: too many arguments to function ‘encoder_listencode_obj’
simplejson/_speedups.c:2216: 警告: implicit declaration of function ‘PyDict_DelItem’
simplejson/_speedups.c:2216: error: ‘PyEncoderObject’ has no member named ‘markers’
simplejson/_speedups.c:2224: 警告: implicit declaration of function ‘Py_LeaveRecursiveCall’
simplejson/_speedups.c: トップレベル:
simplejson/_speedups.c:2229: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c:2229: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c: In function ‘encoder_listencode_dict’:
simplejson/_speedups.c:2232: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:2232: error: ‘open_dict’ undeclared (first use in this function)
simplejson/_speedups.c:2232: error: ‘NULL’ undeclared (first use in this function)
simplejson/_speedups.c:2233: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:2233: error: ‘close_dict’ undeclared (first use in this function)
simplejson/_speedups.c:2234: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:2234: error: ‘empty_dict’ undeclared (first use in this function)
simplejson/_speedups.c:2235: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:2235: error: ‘iteritems’ undeclared (first use in this function)
simplejson/_speedups.c:2236: error: ‘PyObject’ undeclared (first use in this function)
simplejson/_speedups.c:2236: error: ‘kstr’ undeclared (first use in this function)
simplejson/_speedups.c:2237: error: ‘ident’ undeclared (first use in this function)
simplejson/_speedups.c:2238: error: ‘iter’ undeclared (first use in this function)
simplejson/_speedups.c:2239: error: ‘item’ undeclared (first use in this function)
simplejson/_speedups.c:2240: error: ‘items’ undeclared (first use in this function)
simplejson/_speedups.c:2241: error: ‘encoded’ undeclared (first use in this function)
simplejson/_speedups.c:2246: 警告: implicit declaration of function ‘PyString_InternFromString’
simplejson/_speedups.c:2253: 警告: implicit declaration of function ‘PyDict_Size’
simplejson/_speedups.c:2253: error: ‘dct’ undeclared (first use in this function)
simplejson/_speedups.c:2254: 警告: implicit declaration of function ‘PyList_Append’
simplejson/_speedups.c:2254: error: ‘rval’ undeclared (first use in this function)
simplejson/_speedups.c:2256: error: ‘PyEncoderObject’ has no member named ‘markers’
simplejson/_speedups.c:2256: error: ‘Py_None’ undeclared (first use in this function)
simplejson/_speedups.c:2261: error: ‘PyEncoderObject’ has no member named ‘markers’
simplejson/_speedups.c:2264: error: ‘PyExc_ValueError’ undeclared (first use in this function)
simplejson/_speedups.c:2267: error: ‘PyEncoderObject’ has no member named ‘markers’
simplejson/_speedups.c:2275: error: ‘PyEncoderObject’ has no member named ‘indent’
simplejson/_speedups.c:2285: 警告: implicit declaration of function ‘PyObject_IsTrue’
simplejson/_speedups.c:2285: error: ‘PyEncoderObject’ has no member named ‘sort_keys’
simplejson/_speedups.c:2288: 警告: implicit declaration of function ‘PyDict_CheckExact’
simplejson/_speedups.c:2289: 警告: implicit declaration of function ‘PyDict_Keys’
simplejson/_speedups.c:2291: 警告: implicit declaration of function ‘PyMapping_Keys’
simplejson/_speedups.c:2298: 警告: implicit declaration of function ‘PyList_Sort’
simplejson/_speedups.c:2300: 警告: implicit declaration of function ‘PyList_GET_SIZE’
simplejson/_speedups.c:2302: error: ‘key’ undeclared (first use in this function)
simplejson/_speedups.c:2302: error: ‘value’ undeclared (first use in this function)
simplejson/_speedups.c:2302: 警告: カンマ演算子の左側の式に効力がありません
simplejson/_speedups.c:2303: 警告: implicit declaration of function ‘PyList_GET_ITEM’
simplejson/_speedups.c:2304: 警告: implicit declaration of function ‘PyDict_GetItem’
simplejson/_speedups.c:2305: 警告: implicit declaration of function ‘PyTuple_Pack’
simplejson/_speedups.c:2308: 警告: implicit declaration of function ‘PyList_SET_ITEM’
simplejson/_speedups.c:2314: 警告: implicit declaration of function ‘PyDict_Items’
simplejson/_speedups.c:2316: 警告: implicit declaration of function ‘PyMapping_Items’
simplejson/_speedups.c:2320: 警告: implicit declaration of function ‘PyObject_GetIter’
simplejson/_speedups.c:2325: error: ‘PyEncoderObject’ has no member named ‘skipkeys’
simplejson/_speedups.c:2327: 警告: implicit declaration of function ‘PyIter_Next’
simplejson/_speedups.c:2328: 警告: カンマ演算子の左側の式に効力がありません
simplejson/_speedups.c:2328: 警告: カンマ演算子の左側の式に効力がありません
simplejson/_speedups.c:2329: error: ‘PyVarObject’ undeclared (first use in this function)
simplejson/_speedups.c:2329: error: expected expression before ‘)’ token
simplejson/_speedups.c:2333: 警告: implicit declaration of function ‘PyTuple_GET_ITEM’
simplejson/_speedups.c:2340: error: ‘PyEncoderObject’ has no member named ‘key_memo’
simplejson/_speedups.c:2342: 警告: implicit declaration of function ‘Py_INCREF’
simplejson/_speedups.c:2353: error: ‘Py_True’ undeclared (first use in this function)
simplejson/_speedups.c:2353: error: ‘Py_False’ undeclared (first use in this function)
simplejson/_speedups.c:2371: error: ‘PyExc_TypeError’ undeclared (first use in this function)
simplejson/_speedups.c:2376: error: ‘PyEncoderObject’ has no member named ‘item_separator’
simplejson/_speedups.c:2382: 警告: implicit declaration of function ‘Py_CLEAR’
simplejson/_speedups.c:2385: error: ‘PyEncoderObject’ has no member named ‘key_memo’
simplejson/_speedups.c:2392: error: ‘PyEncoderObject’ has no member named ‘key_separator’
simplejson/_speedups.c:2394: error: too many arguments to function ‘encoder_listencode_obj’
simplejson/_speedups.c:2400: 警告: implicit declaration of function ‘PyErr_Occurred’
simplejson/_speedups.c:2403: error: ‘PyEncoderObject’ has no member named ‘markers’
simplejson/_speedups.c:2407: error: ‘PyEncoderObject’ has no member named ‘indent’
simplejson/_speedups.c: トップレベル:
simplejson/_speedups.c:2429: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c:2429: error: expected declaration specifiers or ‘...’ before ‘PyObject’
simplejson/_speedups.c: In function ‘encoder_listencode_list’:
simplejson/_speedups.c:2432: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:2432: error: ‘open_array’ undeclared (first use in this function)
simplejson/_speedups.c:2432: error: ‘NULL’ undeclared (first use in this function)
simplejson/_speedups.c:2433: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:2433: error: ‘close_array’ undeclared (first use in this function)
simplejson/_speedups.c:2434: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
simplejson/_speedups.c:2434: error: ‘empty_array’ undeclared (first use in this function)
simplejson/_speedups.c:2435: error: ‘PyObject’ undeclared (first use in this function)
simplejson/_speedups.c:2435: error: ‘ident’ undeclared (first use in this function)
simplejson/_speedups.c:2436: error: ‘iter’ undeclared (first use in this function)
simplejson/_speedups.c:2437: error: ‘obj’ undeclared (first use in this function)
simplejson/_speedups.c:2449: error: ‘seq’ undeclared (first use in this function)
simplejson/_speedups.c:2453: error: ‘rval’ undeclared (first use in this function)
simplejson/_speedups.c:2455: error: ‘PyEncoderObject’ has no member named ‘markers’
simplejson/_speedups.c:2455: error: ‘Py_None’ undeclared (first use in this function)
simplejson/_speedups.c:2460: error: ‘PyEncoderObject’ has no member named ‘markers’
simplejson/_speedups.c:2463: error: ‘PyExc_ValueError’ undeclared (first use in this function)
simplejson/_speedups.c:2466: error: ‘PyEncoderObject’ has no member named ‘markers’
simplejson/_speedups.c:2477: error: ‘PyEncoderObject’ has no member named ‘indent’
simplejson/_speedups.c:2488: error: ‘PyEncoderObject’ has no member named ‘item_separator’
simplejson/_speedups.c:2491: error: too many arguments to function ‘encoder_listencode_obj’
simplejson/_speedups.c:2500: error: ‘PyEncoderObject’ has no member named ‘markers’
simplejson/_speedups.c:2504: error: ‘PyEncoderObject’ has no member named ‘indent’
simplejson/_speedups.c: トップレベル:
simplejson/_speedups.c:2523: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:2531: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:2549: error: expected ‘)’ before ‘*’ token
simplejson/_speedups.c:2567: error: expected ‘)’ before string constant
simplejson/_speedups.c:2570: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘PyEncoderType’
simplejson/_speedups.c:2613: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘speedups_methods’
simplejson/_speedups.c:2626: error: expected ‘)’ before string constant
simplejson/_speedups.c: In function ‘init_speedups’:
simplejson/_speedups.c:2631: error: ‘PyObject’ undeclared (first use in this function)
simplejson/_speedups.c:2631: error: ‘m’ undeclared (first use in this function)
simplejson/_speedups.c:2631: error: ‘decimal’ undeclared (first use in this function)
simplejson/_speedups.c:2631: 警告: カンマ演算子の左側の式に効力がありません
simplejson/_speedups.c:2632: error: ‘PyScannerType’ undeclared (first use in this function)
simplejson/_speedups.c:2632: error: ‘PyType_GenericNew’ undeclared (first use in this function)
simplejson/_speedups.c:2633: 警告: implicit declaration of function ‘PyType_Ready’
simplejson/_speedups.c:2635: error: ‘PyEncoderType’ undeclared (first use in this function)
simplejson/_speedups.c:2640: error: ‘NULL’ undeclared (first use in this function)
simplejson/_speedups.c:2642: error: ‘DecimalTypePtr’ undeclared (first use in this function)
simplejson/_speedups.c:2642: error: ‘PyTypeObject’ undeclared (first use in this function)
simplejson/_speedups.c:2642: error: expected expression before ‘)’ token
simplejson/_speedups.c:2647: 警告: implicit declaration of function ‘Py_InitModule3’
simplejson/_speedups.c:2647: error: ‘speedups_methods’ undeclared (first use in this function)
simplejson/_speedups.c:2647: error: ‘module_doc’ undeclared (first use in this function)
simplejson/_speedups.c:2648: error: expected expression before ‘)’ token
simplejson/_speedups.c:2649: 警告: implicit declaration of function ‘PyModule_AddObject’
simplejson/_speedups.c:2649: error: expected expression before ‘)’ token
simplejson/_speedups.c:2650: error: expected expression before ‘)’ token
simplejson/_speedups.c:2651: error: expected expression before ‘)’ token

**************************************************************************

WARNING: The C extension could not be compiled, speedups are not enabled.
Failure information, if any, is above.
I'm retrying the build without the C extension now.

**************************************************************************

**************************************************************************

WARNING: The C extension could not be compiled, speedups are not enabled.
Plain-Python installation succeeded.

**************************************************************************

Adding simplejson 2.1.6 to easy-install.pth file

Installed /usr/lib/python2.4/site-packages/simplejson-2.1.6-py2.4.egg
Processing dependencies for simplejson
Finished processing dependencies for simplejson

警告がたくさん出ていますが、simplejsonを使ったスクリプトがちゃんと動いてるので大丈夫でした


みんなのPython 改訂版

みんなのPython 改訂版

初めてのPython 第3版

初めてのPython 第3版