未在 /usr/lib/python2.7/dist-packages 卸载 paramiko,位于环境 /usr 之外

未在 /usr/lib/python2.7/dist-packages 卸载 paramiko,位于环境 /usr 之外

我正在尝试使用 pip 8.1.1 升级 Ubuntu 16.04 4.4.0 上的 paramiko:

pip install -U paramiko
...
Installing collected packages: idna, setuptools, enum34, pycparser, cffi, cryptography, paramiko
  Found existing installation: idna 2.0
    Not uninstalling idna at /usr/lib/python2.7/dist-packages, outside environment /usr
  Found existing installation: setuptools 20.7.0
    Not uninstalling setuptools at /usr/lib/python2.7/dist-packages, outside environment /usr
  Found existing installation: enum34 1.1.2
    Not uninstalling enum34 at /usr/lib/python2.7/dist-packages, outside environment /usr
  Found existing installation: cryptography 1.2.3
    Not uninstalling cryptography at /usr/lib/python2.7/dist-packages, outside environment /usr
  Found existing installation: paramiko 1.16.0
    Not uninstalling paramiko at /usr/lib/python2.7/dist-packages, outside environment /usr

这是一个错误还是我遗漏了什么?

完整日志

如果我尝试升级 pip 本身,也会出现同样的问题。

答案1

我猜你的问题与讨论的问题有关这里

首先 尝试paramiko使用以下命令删除包: 。apt-getapt-get remove python-paramiko

这也适用于更新pip

pip install --upgrade pip
apt-get remove python-pip

相关内容