Skip to main content

Install Python 3.7.5 on CentOS 7 by source tarball

· One min read

目前 CentOS 7 的 yum repo 中只有 Python 3.6.8, 项目中要使用 3.7.5, 只能从源码安装

  1. 安装依赖组件
# yum install gcc openssl-devel bzip2-devel libffi-devel
  1. 下载 Python 3.7.5 源码包, 解压 From https://www.python.org/downloads/release/python-375/
# cd /usr/src
# curl https://www.python.org/ftp/python/3.7.5/Python-3.7.5.tgz -O
# tar zxvf Python-3.7.5.tgz
  1. 配置安装
# cd /usr/src/Python-3.7.5
# ./configure --enable-optimizations
# make altinstall
  1. 创建 python 软链接

安装后的 Python 3.7 执行文件位于: /usr/local/bin/python3.7

# ln -s /usr/local/bin/python3.7 /usr/bin/python3
# ln -s /usr/bin/python3 /usr/bin/python

# python -V
Python 3.7.5
  1. 清理
# rm -f /usr/src/Python-3.7.5.tgz

ernel:unregister_netdevice: waiting for eth0 to become free. Usage count = 1

· One min read

: https://access.redhat.com/solutions/3659011

SOLUTION VERIFIED - Updated October 13 2019 at 9:17 PM -

English

Issue

  • We are trying to prototype kubernetes on top of RHEL and encounter the situation that the device seems to be frozen. There are repeated messages similar to:

Raw

[1331228.795391] unregister_netdevice: waiting for eth0 to become free. Usage count = 1
[1331238.871337] unregister_netdevice: waiting for eth0 to become free. Usage count = 1
[1331248.919329] unregister_netdevice: waiting for eth0 to become free. Usage count = 1
[1331258.964322] unregister_netdevice: waiting for eth0 to become free. Usage count = 1
  • This problem occurs when scaling down pods in kubernetes. A reboot of the node is required to rectify.
  • This has been seen after customers upgraded to a kernel with the fix for https://access.redhat.com/solutions/3105941 But after that the messages appear on ethX instead of lo.

Environment

  • Red Hat Enterprise Linux 7

    • kernel-3.10.0-862.el7.x86_64
    • kernel-3.10.0-957.el7.x86_64
  • upstream Kubernetes

  • upstream docker

refer:

https://github.com/kubernetes/kubernetes/issues/70427

ClustrMaps