Linux安装Python失败常见缺失依赖项

1._ctypes 模块构建失败

build correctly but finished with this message:

    Failed to build these modules:
    _ctypes   

解决
Are you using Ubuntu or other Linux distribution? This problem is because you didn’t install the dependency package.

You may first try to use the instruction at devguide:
http://cpython-devguide.readthedocs.io/setup.html#build-dependencies

Or, assume you have install build-essential and python3-dev …etc., maybe you lost to install libffi-dev, just simply apt-get install libffi-dev and rebuild to solve this problem.

  1. ssl 模块构建失败
Could not build the ssl module!
Python requires an OpenSSL 1.0.2 or 1.1 compatible libssl with X509_VERIFY_PARAM_set1_host

你可能感兴趣的:(Python,python)