CentOS 6/7 安装 Python3.7 失败 – ‘_ctypes’

错误:ModuleNotFoundError: No module named ‘_ctypes’

解决方案:

$ yum install libffi-devel

再安装:

$ ./configure --enable-optimizations
$ make altinstall

可修复 pip3.7。

参考:

  1. https://bugs.python.org/issue31652

作者: YanWen

Web 开发者

发表评论

Fill in your details below or click an icon to log in:

WordPress.com 徽标

You are commenting using your WordPress.com account. Log Out /  更改 )

Google photo

You are commenting using your Google account. Log Out /  更改 )

Twitter picture

You are commenting using your Twitter account. Log Out /  更改 )

Facebook photo

You are commenting using your Facebook account. Log Out /  更改 )

Connecting to %s