Centos7使用python3.7报错集

本文汇总了在CentOS7系统中安装和使用Python3.7过程中遇到的六个常见错误,包括gzip解压错误、C编译器找不到、zlib缺失、_ctypes模块未找到、pip SSL模块不可用以及PyCharm运行Python3.7时的SSL问题,并提供了详细的解决步骤和方法。
摘要由CSDN通过智能技术生成

目录:
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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值