RedHat离线安装Python3以及各种依赖
1, yum install -y ncurses-libs zlib-devel mysql-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gdbm-devel db4-devel libpcap-devel xz-devel 2, 下载Python3的源文件包 ./configure make make install 这时应该可以默认安装了pip3 3, 在有网络的环境下, pip3 freeze > require.txt # pip3 download -r require.txt -d packages 4, 在没有网络的情况下, cd packages pip3 install xxx.whl pip3 install xxx.tar.gz 使用 pip3 install -r require.txt --root packages 无效