目录:
1、tar解压包的时候出现错误 gzip: stdin: not in gzip format
2、编译的时候出现:configure: error: no acceptable C compiler found in $PATH
3、zipimport.ZipImportError: can’t decompress data; zlib not available
4、ModuleNotFoundError: No module named ‘_ctypes’
5、pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available.
6、在安装pycharm后运行python3.7出现如第五点错误
一、出现错误gzip: stdin: not in gzip format
在Linux环境下,通过tar -zxvf 命令解压文件时遇到”gzip: stdin: not in gzip format“等错误:如图所示
[root@localhost Downloads]# tar -xzvf Python-3.7.0.tar.xz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
解决方法:
(1)这个压缩包没有用gzip格式压缩,所以不用加z参数:
tar -zxvf Python-3.7.0.tar.xz 改成 tar -xvf Python

本文汇总了在CentOS7系统中安装和使用Python3.7过程中遇到的六个常见错误,包括gzip解压错误、C编译器找不到、zlib缺失、_ctypes模块未找到、pip SSL模块不可用以及PyCharm运行Python3.7时的SSL问题,并提供了详细的解决步骤和方法。
最低0.47元/天 解锁文章
3648

被折叠的 条评论
为什么被折叠?



