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

在Linux上安装Python时遇到模块构建失败的问题,可能是因为缺少必要的依赖包。解决方案包括安装build-essential, python3-dev, libffi-dev等。如果OpenSSL版本过旧,需要下载最新版本并重新安装。另外,确保已安装zlib相关的依赖包。" 122653121,11261886,LeetCode 189:高效实现轮转数组的算法,"['算法', '编程', 'LeetCode']
摘要由CSDN通过智能技术生成

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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值