作者:Z先生286_158 | 来源:互联网 | 2023-05-16 23:57
#zlibzlibmodule.c-I$(prefix)include-L$(exec_prefix)lib-lzModulesSetup.disthttps:ask
#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz
Modules/Setup.dist
https://askubuntu.com/questions/661039/trouble-with-zip-support-in-custom-python-build-zipimport-zipimporterror-cant
yum -y install gcc gcc-c++ zlib*;
wget https://www.python.org/ftp/python/3.6.5/Python-3.6.5.tgz;
tar -xvf Python-3.6.5.tgz;cd Python-3.6.5;./configure;make;make install;
wget --no-check-certificate https://files.pythonhosted.org/packages/source/p/pip/pip-10.0.0.tar.gz;
tar -xvf pip-10.0.0.tar.gz;
cd pip-10.0.0;python3 setup.py build;python3 setup.py install;
python3 pip3