ERROR: Could not find a version that satisfies the requirement pytest-runner (from versions: none)

执行的命令:

pip install gpustat

ERROR: Could not find a version that satisfies the requirement pytest-runner (from versions: none)_第1张图片

提示的关键报错:

ERROR: Could not find a version that satisfies the requirement pytest-runner (from versions: none)

环境说明:

  • pip源: ~/.pip/pip.conf中配置了aliyun
  • Miniconda环境, python 3.8.2
  • pip是20.0.2(最新pip是20.2.4,感觉不应该是pip版本问题)

做过的尝试:

  • 清理缓存:rm -rf ~/.cache/pip,[无效]
  • 安装其他包:pip uninstall easybox; pip install easybox,[没有问题]
  • 网络上其他人博客,提到换源 [不适合]

解决办法:
脑补了一下,pip的输出信息意思是pytest-runner没有安装(那为什么pip不安装pytest-runner而是在这里抱怨呢?不清楚)。于是执行:

pip install pytest-runner
pip install gpustat

命令成功执行,可以用gpustat查看显卡状态了:

在这里插入图片描述

你可能感兴趣的:(视觉算法,python)