redhat安装python3.8
# For RHEL/Fedora 确保这些软件安装好了,否则后续pip安装相关包可能会出错
yum install libffi-devel bzip2-devel sqlite-devel openssl-devel xz-devel python-backports-lzma ncurses-devel zlib zlib-devel gcc gcc-c++ -y
# or
sudo dnf install libffi-devel
# For Debian/Ubuntu
sudo apt-get install libffi-dev libbz2-dev libsqlite3-dev -y
wget https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tgz tar xzf Python-3.8.3.tgz && cd Python-3.8.3 && sudo ./configure --enable-optimizations && sudo make altinstall -j40
参考链接:https://blog.eldernode.com/install-python-3-8-on-centos/
黄世宇/Shiyu Huang's Personal Page:https://huangshiyu13.github.io/