Python3.7镜像制作

最近需要一个Python3.7的镜像,本来想直接用发行商的rpm直接安装,但由于要基于centos, 找了一下只有FreeBSD/Ubuntu有提供,没办法只要自己从源代码来编译。本来想着也是挺简易的,但过程却比较痛苦,折腾了好久,在这里整理一下。

其实总结下来,都是日志惹的祸,有些关键的日志在make的过程被刷了导致没有发现问题。我的步骤是这样的:
官方安装指南

./configure --prefix=/apps/svr/Python-3.7.6
make && make install

一切都很顺序,python3可以跑起来,但使用pip3 install包时却报错:

WARNING: pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
Collecting threadpool
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘S SLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)’: /simple/threadpool/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by ‘S SLError(“Can’t connect to HTTPS URL because the SSL module is not available.”)’: /simple/threadpool/
WARNING: Retrying (Retry(total=2, connect=None, read

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值