问题1:AttributeError: ‘tuple’ object has no attribute ‘major’
1. 需要将python 更新到2.7+
*备注:* 'tuple' object has no attribute 'major' shouldn't happen in Python 2.7 or later, only in Python 2.6 or earlier. And PySpark 2.3.1 doesn't use Python 2.6... so it's a little confusing.
问题2:zipimport.ZipImportError: can’t decompress data; zlib not available
1.安装zlib
cd ../Python-2.7.13/Modules/zlib
./configure
make install
cd -
2.重新安装python
./configure --prefix /usr/local/python2/
make
make install