首页 > 解决方案 > 为什么我收到错误代码失败的错误?

问题描述

我正在尝试使用 pip 安装软件包,但出现此错误。我怎样才能解决这个问题?我已经尝试过重新安装 pip 和其他 python 包并更新它。

Collecting icount
  Using cached https://files.pythonhosted.org/packages/87/1b/785202907a94d2c2968727a48bac503f03e236f5b11bcc31bc2a0c3ab826/iCount-2.0.0.tar.gz
    Complete output from command python setup.py egg_info:
    error in iCount setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Unordered types are not allowed
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-Uq6EGX/icount/
You are using pip version 10.0.1, however version 20.3.4 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

标签: pythonlinuxinstallationpip

解决方案


点子版本 10.0.1

这是非常旧的版本。升级:

pip install --compile --upgrade "pip<21.0" "setuptools<45"

推荐阅读