zoukankan      html  css  js  c++  java
  • 解决python -m pip install --upgrade pip 升级不成功问题

    1、使用命令出现、

    You are using pip version 9.0.1, however version 19.1.1 is available.
    You should consider upgrading via the 'python -m pip install --upgrade pip' command.
    PS D:安装Python36-32Lib>
    PS D:安装Python36-32Lib>
    PS D:安装Python36-32Lib> python -m pip install --upgrade pip
    Collecting pip
      Downloading https://files.pythonhosted.org/packages/5c/e0/be401c003291b56efc55aeba6a80ab790d3d4cece2778288d65323009420/pip-19.1.1-py2.py3-none-any.whl (1.4MB)
        3% |█                               | 40kB 1.4kB/s eta 0:16:01Exception:
    Traceback (most recent call last):
      File "D:安装Python36-32libsite-packagespip\_vendor
    equestspackagesurllib3
    esponse.py", line 232, in _error_catcher
        yield
      File "D:安装Python36-32libsite-packagespip\_vendor
    equestspackagesurllib3
    esponse.py", line 314, in read
        data = self._fp.read(amt)
      File "D:安装Python36-32libsite-packagespip\_vendorcachecontrolfilewrapper.py", line 60, in read
        data = self.__fp.read(amt)
      File "D:安装Python36-32Libhttpclient.py", line 449, in read
        n = self.readinto(b)
      File "D:安装Python36-32Libhttpclient.py", line 493, in readinto
        n = self.fp.readinto(b)
      File "D:安装Python36-32Libsocket.py", line 586, in readinto
        return self._sock.recv_into(b)
      File "D:安装Python36-32Libssl.py", line 1009, in recv_into
        return self.read(nbytes, buffer)
      File "D:安装Python36-32Libssl.py", line 871, in read
        return self._sslobj.read(len, buffer)
      File "D:安装Python36-32Libssl.py", line 631, in read
        v = self._sslobj.read(len, buffer)
    socket.timeout: The read operation timed out
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "D:安装Python36-32libsite-packagespipasecommand.py", line 215, in main
        status = self.run(options, args)
      File "D:安装Python36-32libsite-packagespipcommandsinstall.py", line 324, in run
        requirement_set.prepare_files(finder)
      File "D:安装Python36-32libsite-packagespip
    eq
    eq_set.py", line 380, in prepare_files
        ignore_dependencies=self.ignore_dependencies))
      File "D:安装Python36-32libsite-packagespip
    eq
    eq_set.py", line 620, in _prepare_file
        session=self.session, hashes=hashes)
      File "D:安装Python36-32libsite-packagespipdownload.py", line 821, in unpack_url
        hashes=hashes
      File "D:安装Python36-32libsite-packagespipdownload.

    2、问题解决,这是因为服务器连接超时,使用一下代码即可解决

    python -m pip install --upgrade pip -i https://pypi.douban.com/simple
  • 相关阅读:
    lua的多种实现方式(1-100的和)
    51单片机交通灯(定时器+38译码器+中断)
    51单片机定时器实现LED闪烁
    51单片机0号与1号外部中断实例
    51单片机:IO口扩展芯片用法(74HC165,74HC595)
    mybatis org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
    Intellij IDEA运行报Command line is too long解法
    Jmeter命令行运行实例讲解
    Windows10在当前目录快速打开cmd的方法
    Jmeter接口测试对json串中的值进行断言
  • 原文地址:https://www.cnblogs.com/karrya/p/10873075.html
Copyright © 2011-2022 走看看