首页 > 解决方案 > 安装 ipython 哈希错误

问题描述

我收到以下错误

这些包与需求文件中的哈希不匹配

在做的时候pip install ipython

在网上搜索,我发现一些用户成功使用--no-cache-dir但我没有运气。

任何有关解决此问题的建议将不胜感激

完成粘贴:

as-MacBook-Pro:~ a$ pip install ipython 收集 ipython 使用缓存 https://files.pythonhosted.org/packages/52/19/aadde98d6bde1667d0bf431fb2d22451f880aaa373e0a241c7e7cb5815a0/ipython-5.7.0-py2-none-any.whl 收集 traitlets> =4.2(来自 ipython)使用缓存的 https://files.pythonhosted.org/packages/93/d6/abcb22de61d78e2fc3959c964628a5771e47e7cc60d53e9342e21ed6cc9a/traitlets-4.3.2-py2.py3-none-any.whl 收集装饰器(来自 ipython)使用缓存的 https ://files.pythonhosted.org/packages/bc/bb/a24838832ba35baf52f32ab1a49b906b5f82fb7c76b2f6a7e35e140bac30/decorator-4.3.0-py2.py3-none-any.whl 收集simplegeneric>0.8(来自ipython)使用缓存 https://files.pythonhosted.org/packages/3d/57/4d9c9e3ae9a255cd4e1106bb57e24056d3d0709fc01b2e3e345898e49d5b/simplegeneric-0.8.1.zip 收集backports.shutil-get-terminal-size;python_version == “2.7”(来自 ipython)使用缓存的 https://files.pythonhosted.org/packages/7d/cd/1750d6c35fe86d35f8562091737907f234b78fdffab42b29c72b1dd861f4/backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.wments (收集来自 ipython)使用缓存的 https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl 收集应用程序;sys_platform == "darwin" (来自 ipython) 使用缓存 https://files.pythonhosted.org/packages/87/a9/7985e6a53402f294c8f0e8eff3151a83f1fb901fa92909bb3ff29b4d22af/appnope-0.1.0-py2.py3-none-any.whl 收集pexpect;sys_platform != "win32" (来自 ipython) 使用缓存 的https://files.pythonhosted.org/packages/89/e6/b5a1de8b0cc4e07ca1b305a4fcc3f9806025c1b651ea302646341222f88b/pexpect-4.6.0-py2.py3-none-any.whl 收集python pickleshare ) 使用缓存 的https://files.pythonhosted.org/packages/9f/17/daa142fc9be6b76f26f24eeeb9a138940671490b91cb5587393f297c8317/pickleshare-0.7.4-py2.py3-none-any.whl 收集 prompt-toolkit<2.0.0,>=1.0.4 (来自 ipython)使用缓存 https://files.pythonhosted.org/packages/d1/b0/1a6c262da35c779dd79550137aa7c298a424987240a28792ec5ccf48f848/prompt_toolkit-1.0.15-py2-none-any.whl 已满足要求:/System/Library/Frameworks/Python.framework 中的 setuptools>=18.5 /Versions/2.7/Extras/lib/python(来自ipython)(18.5)收集pathlib2;python_version == "2.7" 或 python_version == "3.3" (来自 ipython) 使用缓存的 https://files.pythonhosted.org/packages/66/a7/9f8d84f31728d78beade9b1271ccbfb290c41c1e4dc13dbd4997ad594dcd/pathlib2-2.3.2-py2.py3-none-any .whl 收集 ipython-genutils (来自 traitlets>=4.2->ipython 已满足要求:/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python 中的六个(来自 traitlets>=4.2->ipython)(1.4.1)收集 enum34;python_version == "2.7" (from traitlets>=4.2->ipython) 使用缓存的 https://files.pythonhosted.org/packages/c5/db/e56e6b4bbac7c4a06de1c50de6fe1ef3810018ae11732a50f15f62c7d050/enum34-1.1.6-py2-none-any.whl 收集ptyprocess>=0.5 (来自 pexpect; sys_platform != "win32"->ipython) 使用缓存的 https://files.pythonhosted.org/packages/d1/29/605c2cc68a9992d18dada28206eeada56ea4bd07a239669da41674648b6f/ptyprocess-0.6.0-py2.py3-none- any.whl 收集 wcwidth (from prompt-toolkit<2.0.0,>=1.0.4->ipython)
使用缓存 https://files.pythonhosted.org/packages/7e/9f/526a6947247599b084ee5232e4f9190a38f398d7300d866af3ab571a5bfe/wcwidth-0.1.7-py2.py3-none-any.whl 收集scandir;python_version < "3.5" (来自 pathlib2; python_version == "2.7" 或 python_version == "3.3"->ipython) 使用缓存 的 https://files.pythonhosted.org/packages/13/bb/e541b74230bbf7a20a3949a2ee6631be299378a784f5445aa5d0047c192b/scandir-17。 tar.gz 这些包与需求文件中的哈希不匹配。如果您已更新软件包版本,请更新哈希值。否则,请仔细检查包装内容;可能有人篡改了它们。simplegeneric>0.8 从https://files.pythonhosted.org/packages/3d/57/4d9c9e3ae9a255cd4e1106bb57e24056d3d0709fc01b2e3e345898e49d5b/simplegeneric-0.8.1.zip#sha256=dc972e06094b9af5b855b3df4a646395e43d1c9d0d39ed345b7393560d0b9173 (from ipython): Expected sha256 dc972e06094b9af5b855b3df4a646395e43d1c9d0d39ed345b7393560d0b9173 Got 01eda95e2448e83d00402a9c32bb4f72f6c26e6e7e051e1c98af79eab72b3b4d

标签: pipipython

解决方案


推荐阅读