Board logo

标题: python ImportError: No module named '_ctypes' 解决办法 [打印本页]

作者: linda    时间: 2019-7-11 20:50     标题: python ImportError: No module named '_ctypes' 解决办法

If using RHEL/Fedora:

yum install libffi-devel
or

sudo dnf install libffi-devel
If using Debian/Ubuntu:

sudo apt-get install libffi-dev

apt-get install zlib1g-dev libssl-dev

./configure
make
mv /usr/local/lib/pythonx.x /usr/local/lib/pythonx.x.org
make install

参考:
https://stackoverflow.com/questions/27022373/python3-importerror-no-module-named-ctypes-when-using-value-from-module-mul




欢迎光临 中神通公司技术论坛 (http://trustcomputing.com.cn/bbs/) Powered by Discuz! 6.0.0