开发者社区> 问答> 正文

python3安装编译时报_ctypes failed to build

操作系统suse 11 sp3,编译时报错:

CBP81:/app/Python-3.8.2 # make CC='gcc -pthread' LDSHARED='gcc -pthread -shared ' OPT='-DNDEBUG -g -fwrapv -O3 -Wall' _TCLTK_INCLUDES='' _TCLTK_LIBS='' ./python -E ./setup.py build running build running build_ext INFO: Can't locate Tcl/Tk libs and/or headers INFO: Could not locate ffi libs and/or headers readline: /etc/inputrc: line 18: term: unknown variable name

Python build finished successfully! The necessary bits to build these optional modules were not found: _lzma _tkinter _uuid To find the necessary bits, look in setup.py in detect_modules() for the module's name.

The following modules found by detect_modules() in setup.py, have been built by the Makefile instead, as configured by the Setup files: _abc atexit pwd time

Failed to build these modules: _ctypes 网上查了相关资料,说需要装libffi-devel,但是系统实际已经安装。 CBP81:/app/Python-3.8.2 # zypper install libffi-devel* Loading repository data... Reading installed packages... 'libffi-devel' providing 'libffi-devel*' is already installed.

烦请大佬们帮忙解决下,python小白在此先行谢过。

展开
收起
游客vhq2noybe4nyw 2020-03-13 09:55:22 4226 0
2 条回答
写回答
取消 提交回答
  • apt-get install libffi-dev

    shi shi zhe ge

    2020-07-13 01:01:09
    赞同 展开评论 打赏
  • 代码改变世界,我们改变代码

    你没有选对跟系统对应的版本吧。

    2020-03-13 18:27:19
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
From Python Scikit-Learn to Sc 立即下载
Data Pre-Processing in Python: 立即下载
双剑合璧-Python和大数据计算平台的结合 立即下载