pip 安装错误 Command "python setup.py egg_info" failed with error code
技术积累 Python Centos7 pip

[python2.7版本] pip安装包 或者 pip升级pip版本出现此错误:

······
      File "/tmp/pip-build-vD3Ntt/pip/setup.py", line 7
        def read(rel_path: str) -> str:
                         ^
    SyntaxError: invalid syntax
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vD3Ntt/pip/
You are using pip version 8.1.2, however version 21.2.3 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

出现此错误后,执行升级pip和setuptools也出同样错误,网上搜索此错误解决方式都是升级pip和setuptools

pip 安装错误 Command "python setup.py egg_info" failed with error code

原因呢肯定是pip问题了,解决办法:

# 本站下载 https://me.jinchuang.org/sofw/get-pip.zip
wget https://bootstrap.pypa.io/pip/2.7/get-pip.py
python get-pip.py
pip install --upgrade setuptools

本文最后记录时间 2024-03-30
文章链接地址:
https://me.jinchuang.org/archives/1158.html
本站文章除注明[转载|引用|来源],均为本站原创内容,转载前请注明出处
使用腾讯云CDN的SDK 用脚本去刷新URL缓存
yum安装出现error: %pre() scriptlet failed, exit status 1, Error in PREIN scriptlet in rpm package 错误
在Nginx中配置使用Geoip2模块
Centos7 yum报错:Error: rpmdb open failed

Nali 一个查询IP地理信息和CDN服务提供商的离线终端工具

Linux jar包服务启动停止shell脚本

留言列表

  1. Solitude
    Windows 10 Firefox
    中国广东省电信 ◀网络运营商

    感谢博主,非常有用!

  2. poi
    poi
    Windows 10 Google Chrome
    中国上海电信 ◀网络运营商

    非常有效,感谢分享

  3. 华华
    Windows 10 Google Chrome
    中国上海电信 ◀网络运营商

    实测,有效,感谢

留言

顶部