- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我在 Ubuntu 10.04 中工作。我机器上的默认 python 是 2.6。我用 python 2.7 创建了一个 virutalenv。我正在编写一个要在 googleappengine 上运行的 django 应用程序。为了在我的一个模型中使用 ImageField,我需要安装 PIL。有很多很多关于安装 PIL 的帖子,我已经关注了很多,但都没有成功。
我能够成功运行
sudo pip install PIL
但是我的 virtualenv 无法访问它。当我运行时
pip install PIL
在我的 virtualenv 中我得到一个 gcc 错误。
我安装了所有依赖项,apt-get 安装了 python-imaging,下载了 PIL 并尝试使用 setup.py 构建/安装,并按照我阅读的许多帖子中的许多其他说明进行操作。
有没有人有什么想法?
编辑:
错误:
错误:命令 'gcc' 失败,退出状态为 1
编辑:我可以粘贴尽可能多的错误(其余部分不在屏幕上)
_imaging.c:301: error: ‘PyExc_IOError’ undeclared (first use in this function)<p></p>
<p>_imaging.c:302: error: ‘NULL’ undeclared (first use in this function)</p>
<p>_imaging.c: In function ‘ImagingError_MemoryError’:</p>
<p>_imaging.c:308: warning: implicit declaration of function ‘PyErr_NoMemory’</p>
<p>_imaging.c:308: warning: return makes pointer from integer without a cast</p>
<p>_imaging.c: In function ‘ImagingError_Mismatch’:</p>
<p>_imaging.c:314: error: ‘PyExc_ValueError’ undeclared (first use in this function)</p>
<p>_imaging.c:315: error: ‘NULL’ undeclared (first use in this function)</p>
<p>_imaging.c: In function ‘ImagingError_ModeError’:</p>
<p>_imaging.c:321: error: ‘PyExc_ValueError’ undeclared (first use in this function)</p>
<p>_imaging.c:322: error: ‘NULL’ undeclared (first use in this function)</p>
<p>_imaging.c: In function ‘ImagingError_ValueError’:</p>
<p>_imaging.c:329: error: ‘PyExc_ValueError’ undeclared (first use in this function)</p>
<p>_imaging.c:332: error: ‘NULL’ undeclared (first use in this function)</p>
<p>_imaging.c: In function ‘ImagingError_Clear’:</p>
<p>_imaging.c:338: warning: implicit declaration of function ‘PyErr_Clear’</p>
<p>_imaging.c: At top level:</p>
<p>_imaging.c:369: error: expected ‘)’ before ‘*’ token</p>
<p>_imaging.c:464: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:510: error: expected ‘)’ before ‘*’ token</p>
<p>_imaging.c:587: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:619: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:631: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:643: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:655: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:664: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:675: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:686: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:697: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:719: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:743: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:760: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:777: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:786: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:803: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:813: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:824: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:857: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:879: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:914: error: expected ‘)’ before ‘*’ token</p>
<p>_imaging.c:954: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:981: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1054: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1065: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1075: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1114: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1191: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1202: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1339: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1359: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1394: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1419: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1448: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1459: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1479: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1530: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1568: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1614: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1689: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1739: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1765: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1771: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1783: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1817: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1845: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1874: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1885: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1901: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1922: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1928: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1939: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1950: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1961: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1972: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:1983: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2001: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2019: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2030: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2041: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2052: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2063: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2081: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c: In function ‘_font_dealloc’:</p>
<p>_imaging.c:2142: warning: implicit declaration of function ‘Py_XDECREF’</p>
<p>_imaging.c:2142: error: ‘ImagingFontObject’ has no member named ‘ref’</p>
<p>_imaging.c: In function ‘textwidth’:</p>
<p>_imaging.c:2152: error: ‘ImagingFontObject’ has no member named ‘glyphs’</p>
<p>_imaging.c: At top level:</p>
<p>_imaging.c:2157: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2205: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2215: error: array type has incomplete element type</p>
<p>_imaging.c:2216: error: ‘PyCFunction’ undeclared here (not in a function)</p>
<p>_imaging.c:2216: error: expected ‘}’ before ‘_font_getmask’</p>
<p>_imaging.c:2217: error: expected ‘}’ before ‘_font_getsize’</p>
<p>_imaging.c:2218: error: ‘NULL’ undeclared here (not in a function)</p>
<p>_imaging.c:2221: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2229: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c: In function ‘_draw_dealloc’:</p>
<p>_imaging.c:2257: error: ‘ImagingDrawObject’ has no member named ‘image’</p>
<p>_imaging.c: At top level:</p>
<p>_imaging.c:2261: error: expected ‘)’ before ‘*’ token</p>
<p>_imaging.c:2263: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2278: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2298: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2335: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2353: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2390: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2406: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2459: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2474: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2507: error: expected ‘)’ before ‘*’ token</p>
<p>_imaging.c:2509: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2536: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2554: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2600: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2637: error: array type has incomplete element type</p>
<p>_imaging.c:2640: error: expected ‘}’ before ‘_draw_line’</p>
<p>_imaging.c:2641: error: expected ‘}’ before ‘_draw_lines’</p>
<p>_imaging.c:2643: error: expected ‘}’ before ‘_draw_outline’</p>
<p>_imaging.c:2645: error: expected ‘}’ before ‘_draw_polygon’</p>
<p>_imaging.c:2646: error: expected ‘}’ before ‘_draw_rectangle’</p>
<p>_imaging.c:2647: error: expected ‘}’ before ‘_draw_point’</p>
<p>_imaging.c:2648: error: expected ‘}’ before ‘_draw_points’</p>
<p>_imaging.c:2649: error: expected ‘}’ before ‘_draw_arc’</p>
<p>_imaging.c:2650: error: expected ‘}’ before ‘_draw_bitmap’</p>
<p>_imaging.c:2651: error: expected ‘}’ before ‘_draw_chord’</p>
<p>_imaging.c:2652: error: expected ‘}’ before ‘_draw_ellipse’</p>
<p>_imaging.c:2653: error: expected ‘}’ before ‘_draw_pieslice’</p>
<p>_imaging.c:2654: error: expected ‘}’ before ‘_draw_ink’</p>
<p>_imaging.c:2659: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2668: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c: In function ‘pixel_access_dealloc’:</p>
<p>_imaging.c:2693: error: ‘PixelAccessObject’ has no member named ‘image’</p>
<p>_imaging.c: At top level:</p>
<p>_imaging.c:2697: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2708: error: expected declaration specifiers or ‘...’ before ‘PyObject’</p>
<p>_imaging.c:2708: error: expected declaration specifiers or ‘...’ before ‘PyObject’</p>
<p>_imaging.c: In function ‘pixel_access_setitem’:</p>
<p>_imaging.c:2710: error: ‘PixelAccessObject’ has no member named ‘image’</p>
<p>_imaging.c:2714: error: ‘PixelAccessObject’ has no member named ‘readonly’</p>
<p>_imaging.c:2719: warning: implicit declaration of function ‘_getxy’</p>
<p>_imaging.c:2719: error: ‘xy’ undeclared (first use in this function)</p>
<p>_imaging.c:2723: error: ‘PyExc_IndexError’ undeclared (first use in this function)</p>
<p>_imaging.c:2727: error: ‘color’ undeclared (first use in this function)</p>
<p>_imaging.c:2730: warning: implicit declaration of function ‘getink’</p>
<p>_imaging.c:2733: error: ‘PixelAccessObject’ has no member named ‘image’</p>
<p>_imaging.c: At top level:</p>
<p>_imaging.c:2744: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2763: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2774: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2791: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2811: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2846: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:2867: error: array type has incomplete element type</p>
<p>_imaging.c:2870: error: expected ‘}’ before ‘_getpixel’</p>
<p>_imaging.c:2871: error: expected ‘}’ before ‘_putpixel’</p>
<p>_imaging.c:2873: error: expected ‘}’ before ‘pixel_access_new’</p>
<p>_imaging.c:2876: error: expected ‘}’ before ‘_convert’</p>
<p>_imaging.c:2877: error: expected ‘}’ before ‘_convert2’</p>
<p>_imaging.c:2878: error: expected ‘}’ before ‘_convert_matrix’</p>
<p>_imaging.c:2879: error: expected ‘}’ before ‘_copy’</p>
<p>_imaging.c:2880: error: expected ‘}’ before ‘_copy2’</p>
<p>_imaging.c:2884: error: expected ‘}’ before ‘_crop’</p>
<p>_imaging.c:2885: error: expected ‘}’ before ‘_expand’</p>
<p>_imaging.c:2886: error: expected ‘}’ before ‘_filter’</p>
<p>_imaging.c:2887: error: expected ‘}’ before ‘_histogram’</p>
<p>_imaging.c:2889: error: expected ‘}’ before ‘_modefilter’</p>
<p>_imaging.c:2891: error: expected ‘}’ before ‘_offset’</p>
<p>_imaging.c:2892: error: expected ‘}’ before ‘_paste’</p>
<p>_imaging.c:2893: error: expected ‘}’ before ‘_point’</p>
<p>_imaging.c:2894: error: expected ‘}’ before ‘_point_transform’</p>
<p>_imaging.c:2895: error: expected ‘}’ before ‘_putdata’</p>
<p>_imaging.c:2897: error: expected ‘}’ before ‘_quantize’</p>
<p>_imaging.c:2900: error: expected ‘}’ before ‘_rankfilter’</p>
<p>_imaging.c:2902: error: expected ‘}’ before ‘_resize’</p>
<p>_imaging.c:2903: error: expected ‘}’ before ‘_rotate’</p>
<p>_imaging.c:2904: error: expected ‘}’ before ‘_stretch’</p>
<p>_imaging.c:2905: error: expected ‘}’ before ‘_transpose’</p>
<p>_imaging.c:2906: error: expected ‘}’ before ‘_transform2’</p>
<p>_imaging.c:2908: error: expected ‘}’ before ‘_isblock’</p>
<p>_imaging.c:2910: error: expected ‘}’ before ‘_getbbox’</p>
<p>_imaging.c:2911: error: expected ‘}’ before ‘_getcolors’</p>
<p>_imaging.c:2912: error: expected ‘}’ before ‘_getextrema’</p>
<p>_imaging.c:2913: error: expected ‘}’ before ‘_getprojection’</p>
<p>_imaging.c:2915: error: expected ‘}’ before ‘_getband’</p>
<p>_imaging.c:2916: error: expected ‘}’ before ‘_putband’</p>
<p>_imaging.c:2917: error: expected ‘}’ before ‘_fillband’</p>
<p>_imaging.c:2919: error: expected ‘}’ before ‘im_setmode’</p>
<p>_imaging.c:2921: error: expected ‘}’ before ‘_getpalette’</p>
<p>_imaging.c:2922: error: expected ‘}’ before ‘_putpalette’</p>
<p>_imaging.c:2923: error: expected ‘}’ before ‘_putpalettealpha’</p>
<p>_imaging.c:2927: error: expected ‘}’ before ‘_chop_invert’</p>
<p>_imaging.c:2928: error: expected ‘}’ before ‘_chop_lighter’</p>
<p>_imaging.c:2929: error: expected ‘}’ before ‘_chop_darker’</p>
<p>_imaging.c:2930: error: expected ‘}’ before ‘_chop_difference’</p>
<p>_imaging.c:2931: error: expected ‘}’ before ‘_chop_multiply’</p>
<p>_imaging.c:2932: error: expected ‘}’ before ‘_chop_screen’</p>
<p>_imaging.c:2933: error: expected ‘}’ before ‘_chop_add’</p>
<p>_imaging.c:2934: error: expected ‘}’ before ‘_chop_subtract’</p>
<p>_imaging.c:2935: error: expected ‘}’ before ‘_chop_add_modulo’</p>
<p>_imaging.c:2936: error: expected ‘}’ before ‘_chop_subtract_modulo’</p>
<p>_imaging.c:2937: error: expected ‘}’ before ‘_chop_and’</p>
<p>_imaging.c:2938: error: expected ‘}’ before ‘_chop_or’</p>
<p>_imaging.c:2939: error: expected ‘}’ before ‘_chop_xor’</p>
<p>_imaging.c:2944: error: expected ‘}’ before ‘_gaussian_blur’</p>
<p>_imaging.c:2945: error: expected ‘}’ before ‘_unsharp_mask’</p>
<p>_imaging.c:2950: error: expected ‘}’ before ‘_effect_spread’</p>
<p>_imaging.c:2954: error: expected ‘}’ before ‘_new_array’</p>
<p>_imaging.c:2955: error: expected ‘}’ before ‘_new_block’</p>
<p>_imaging.c:2958: error: expected ‘}’ before ‘_save_ppm’</p>
<p>_imaging.c:2967: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c: In function ‘image_length’:</p>
<p>_imaging.c:2996: error: ‘ImagingObject’ has no member named ‘image’</p>
<p>_imaging.c: At top level:</p>
<p>_imaging.c:3001: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3016: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘image_as_sequence’</p>
<p>_imaging.c:3029: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘PyTypeObject’</p>
<p>_imaging.c:3050: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘PyTypeObject’</p>
<p>_imaging.c:3062: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘PyTypeObject’</p>
<p>_imaging.c:3076: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘pixel_access_as_mapping’</p>
<p>_imaging.c:3084: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘PyTypeObject’</p>
<p>_imaging.c:3106: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3107: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3108: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3109: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3110: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3111: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3112: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3113: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3114: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3115: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3116: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3117: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3118: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3119: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3120: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3126: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3127: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3128: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3129: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3144: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3147: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3149: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3150: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘*’ token</p>
<p>_imaging.c:3152: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘<strong>attribute</strong>’ before ‘functions’</p>
<p>_imaging.c:3250: warning: return type defaults to ‘int’</p>
<p>_imaging.c: In function ‘DL_EXPORT’:</p>
<p>_imaging.c:3250: error: expected declaration specifiers before ‘init_imaging’</p>
<p>_imaging.c:3281: error: expected ‘{’ at end of input</p>
<p>error: command 'gcc' failed with exit status 1 </p>
最佳答案
使用Pillow 可能会有更好的运气. Pillow 是 PIL 的一个分支,它解决了 PIL 的设置工具不兼容问题。
关于python - 安装 PIL 适用于 sudo,不能在 venv 中使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14180433/
sudo 命令 1、sudo 简介 sudo是linux系统管理指令,是允许系统管理员让普通用户执行一些或者全部的root命令的一个工具,如halt,reboot,su等等。这样不仅减少了root用户
我正在尝试更改 source.list。 主机有一个用户 deploy 和密码 deploy 我可以连接 ssh 并使用 sudo 对 source.list 进行任何操作。然而 ansible 似乎
我希望以我当前用户的权限运行 TOMCAT,而不是 root 的环境变量。 vagrant@dev:~/Workspace/eurekastreams$ echo $JAVA_OPTS -Xmx102
这个问题在这里已经有了答案: How to install python modules without root access? (9 个回答) 3年前关闭。 最终目标是在 redhat 机器上的
我一直在尝试允许 EC2 亚马逊服务器('ec2-user')的普通用户访问某个库。 我做了:“sudo chown -R ec2-user/usr”,我现在意识到这是一个致命的错误。它起作用了,但是
我正在尝试使用 cgi (python) 配置 apache2。为此,我必须更改某些文件夹和文件的权限,但每次尝试更改文件或文件夹的权限时,我都会收到 sudo fatal error 。 例如: 1
关闭。这个问题不符合Stack Overflow guidelines .它目前不接受答案。 这个问题似乎不是关于 a specific programming problem, a softwar
我不想在 sudoers 文件中禁用 requiretty。请建议当我在 cron 作业中执行脚本时是否有其他方式启动终端 最佳答案 这可能是一个奇怪的解决方法,但您可以使用 -t 选项通过 cron
寻找将当前用户的别名传递给 sudo 的方法命令,我找到了以下 on ArchWiki : Passing aliases If you use a lot of aliases, you might
我已将 Royal TS 设置为在多台 Linux 计算机上使用我的用户名自动登录。我想让它在连接后自动运行 sudo su -,输入我的密码,这样只需双击连接即可获得 root 权限。 我已经通过创
我正在尝试使用涉及使用 sudo 的子进程。 它在终端中运行良好: sudo /home/pi/Desktop/fm_transmitter/bin/Release/fm_transmitter
我想通过 ssh 连接到远程服务器,更改用户然后执行脚本。我正在使用 subprocess 来执行此操作,但似乎 sudo -u userB -i 并未更改用户。 HOST = 'remote_ser
我正在尝试使用 Ansible 来配置一个 Vagrant 框和一个 EC2 服务器。使用 --connection=local 时,它在 Vagrant 框上工作正常,但似乎只是忽略了 sudo:
嗨,我为 Ansible 编写了一个剧本来安装一些应用程序。我遇到了麻烦,因为我必须以 root 身份运行所有东西,这不是一个好主意。 所以我创建了一个 sudo 用户并创建了一个用于身份验证的私钥。
我想通过 electron 写一个应用程序,但要求是更新需要 root 的文件允许。 通过 cli 很容易实现,就像 sudo vi xxx . 是否可以通过 electron 更新文件? ? 最佳答
我已经安装了以下 pkgs: ii tigervnc-common 1.10.1+dfsg-1 amd
我有一个经销商 Web 服务器,正在将其迁移到新计算机中。源服务器所有者提供了一个用户(我们称之为用户 A),该用户对其他用户具有 sudo 访问权限,但对 root 没有权限。我的用户没有对我需要提
use std::fs::OpenOptions; use std::io::Write; fn main() { let mut source_list = OpenOptions::new
我正在尝试使用命令 sudo jupyterhub 启动 JupyterHub。这会启动服务器,但用户无法登录。但是,当我使用 sudo -s 切换到 root 用户,然后输入 jupyterhub
我正在尝试安装 pip,但我在 StackOverflow 中陷入了相互冲突的答案中(请阅读末尾的评论以了解重复的问题)。 instructions说下载get-pip.py并使用 phyton 运行
我是一名优秀的程序员,十分优秀!