首页 > 服务器 pip install 总是报错!

服务器 pip install 总是报错!

比如 pip install uwsgi
报错:

    Hash of the package https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.11.1.tar.gz#md5=087ba7b53bd4afc0f0218f5eb3398809 (from https://pypi.python.org/simple/uwsgi/) (d4482033ec732ac3ef5f3e29ca607a42) doesn't match the expected hash 087ba7b53bd4afc0f0218f5eb3398809!
Bad md5 hash for package https://pypi.python.org/packages/source/u/uWSGI/uwsgi-2.0.11.1.tar.gz#md5=087ba7b53bd4afc0f0218f5eb3398809 (from https://pypi.python.org/simple/uwsgi/)

我是root登录服务器的。求解答!!!


删除 Pip cache

rm -rf ~/.pip/cache/
sudo rm -rf /root/.pip/cache

或者运行 pip 不使用 cache:

--no-cache-dir

Bad Pip

查看 pip 版本

pip --version

升级 pip

sudo pip install --upgrade pip

另外 换个源吧 python.org的源在国内慢的不行

【热门文章】
【热门文章】