0


Python2.7安装包错误解决

Python2.7安装包错误解决

1.环境

  • CentOS 7
  • Python 2.7.5
  • pip 20.3.4

2.错误描述

在安装库时出现报错

Command "python setup.py egg_info" failed with error code 1

,如下图所示。

在这里插入图片描述

原因

:

setuptools

版本太低导致。

3.解决方法

安装高版本的

setuptools

,命令如下。

# 下载wget https://files.pythonhosted.org/packages/24/49/7f567b628e14ee004938eec256cffeae7097db9e28576911ae7b84d2ff07/setuptools-41.1.0.post1.tar.gz
# 解压tar -zxvf setuptools-41.1.0.post1.tar.gz
# 安装cd setuptools-41.1.0.post1/
python setup.py install
参考博客

: https://blog.csdn.net/Happy_Sunshine_Boy/article/details/99619966

https://blog.csdn.net/Chasing_Chasing/article/details/120657735

标签: linux python 运维

本文转载自: https://blog.csdn.net/qq_40856560/article/details/129564814
版权归原作者 小宇0926 所有, 如有侵权,请联系我们删除。

“Python2.7安装包错误解决”的评论:

还没有评论