Lao Zuo has upgraded python 3.6 on a CentOS7 server. During the compilation process, "zipimport. ZipImportError: can't decompress data; The zlib not available "error prompt seems to be caused by the lack of packages. After searching various online tutorials, it was found that most of the problems could not be solved. Some solutions were to modify the configuration file and uncomment" zlib zlibmodule. c ", but I tried to solve them.
1. Error prompt
2. The problem cannot be solved by modifying the configuration file
3. Solution
yum install zlib zlib-devel -y
The required package can only be installed directly. Some online documents suggest installing the zlibc zlib1g dev package. My tests here are different. Maybe it can be installed in other environments. Finally, we can make install to compile python without error prompt.
Scan the code to follow the official account
Get more news about webmaster circle!
Entrepreneurship, operation and new knowledge