zoukankan      html  css  js  c++  java
  • 安装pip install pymysql碰到的问题,升级pip报错:Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vZoYWX/pip/

    安装pip install pymysql碰到的问题

     

    报错信息:

    Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-vZoYWX/pip/
    You are using pip version 8.1.1, however version 21.2.4 is available.
    You should consider upgrading via the 'pip install --upgrade pip' command.

     

    操作过程:

    使用 pip install --upgrade pip 升级失败

    使用 python -m pip install --upgrade pip 升级失败

    使用 python -m pip install -U --force-reinstall pip 依然失败

    使用 pip install --user --upgrade pip 还是失败

     

    解决步骤:

    curl https://bootstrap.pypa.io/pip/3.5/get-pip.py -o get-pip.py  注:python命令的话用:https://bootstrap.pypa.io/pip/2.7/get-pip.py

    python3 get-pip.py --force-reinstall

    更新缓存:hash -r

    再执行:pip install pymysql

    成功解决!

  • 相关阅读:
    js基础面试篇
    vue自定义指令
    vue兄弟节点通信
    vue----打包上线引用外部cdn
    vue----mockjs
    laravel database opearate1
    laravel seeding
    backtotop组件
    配置节流函数
    failed at the chromedriver@2.33.2 install script
  • 原文地址:https://www.cnblogs.com/tdalcn/p/15272946.html
Copyright © 2011-2022 走看看