代码之家  ›  专栏  ›  技术社区  ›  Sebin Benjamin

如何在Ubuntu 18.04中将pip3更新到最新版本?

  •  2
  • Sebin Benjamin  · 技术社区  · 8 年前

    我在跑步时遇到这个错误

    $ pip3 install -U pip
    
    Requirement already up-to-date: pip in ./dlenv/lib/python3.6/site-packages (10.0.1)
    launchpadlib 1.10.6 requires testresources, which is not installed.
    

    我在公寓里找过 testresources 似乎已经安装了。

    apt search testresources
    Sorting... Done
    Full Text Search... Done
    python-testresources/bionic,bionic 2.0.0-2 all
      PyUnit extension for managing expensive test fixtures - Python 2.x
    
    python3-testresources/bionic,bionic 2.0.0-2 all
      PyUnit extension for managing expensive test fixtures - Python 3.
    

    我经历过这个Github issue ,但没有明确的解决方案。

    3 回复  |  直到 7 年前
        1
  •  2
  •   jits_on_moon    8 年前

    sudo apt install python3-testresources
    
        2
  •  0
  •   R.Liu    7 年前

    PyPA guide sudo apt install python3-pip

    # curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

    # python get-pip.py

    /usr/local/bin/pip

        3
  •  -2
  •   Sukesh Chulliyote    8 年前