对于某种pip报错的不理解

(rosetta3) shixiaolong@shixiaolongdeMacBook-Pro Real-ESRGAN % pip install basicsr
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
Collecting basicsr
  Using cached http://mirrors.aliyun.com/pypi/packages/86/41/00a6b000f222f0fa4c6d9e1d6dcc9811a374cabb8abb9d408b77de39648c/basicsr-1.4.2.tar.gz (172 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [36 lines of output]
      WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.
      ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
      ERROR: No matching distribution found for numpy

这明明是没有依赖numpy的问题,开头却是说

The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with '--trusted-host mirrors.aliyun.com'.

这就让人误解为是下面这个问题

--trusted-host mirrors.aliyun.com

于是乎就沿着这个思路去寻找问题,结果肯定是找不到的,耽误时间

其实真正的问题点在这里:

      ERROR: Could not find a version that satisfies the requirement numpy (from versions: none)
      ERROR: No matching distribution found for numpy

这两行字面意思来看是找不到匹配的版本,但是实际上并不是这个样子。
其实是缺少这个依赖,压根就没有安装,然后他也不会自动安装
为什么不能直接点说:”缺少这个依赖,请手动安装!“ ?

你可能感兴趣的:(对于某种pip报错的不理解)