Linux_卸载重装pip

 

卸载重装pip

今天发现pip3 一直在报警 Cache entry deserialization failed, entry ignored
我决定卸载重装下pip3,试过的卸载命令如下 我采用的是第二种方法

    第一种: 如果用apt-get 安装
    apt-get --purge autoremove python3-pip

    第二种: 如果使用的是https://bootstrap.pypa.io/get-pip.py这个脚本文件安装的,卸载命令如下
    python3 -m pip uninstall pip

然后重新安装pip3
curl https://bootstrap.pypa.io/get-pip.py | python3
安装完后又发现报错如下

    Gkr-Message: 14:45:07.375: secret service operation failed: The name org.freedesktop.secrets was not provided by any .service files

    #不明真相的我只能搜索了下
    #解决方法
    apt-get install gnome-keyring

最后尝试下pip3 是否正常,不再报警

    pip3 check
    python-debianbts 2.7.2 requires pysimplesoap, which is not installed.
    promise 2.0.1 requires typing, which is not installed.
    graphene-sqlalchemy 2.0.0 requires singledispatch, which is not installed.
    mitmproxy 3.0.4 has requirement tornado<5.1,>=4.3, but you have tornado 5.1.1.