问题描述

pip install wavedrom 
Looking in indexes: http://mirrors.cloud.aliyuncs.com/pypi/simple/
Collecting wavedrom
  Using cached http://mirrors.cloud.aliyuncs.com/pypi/packages/be/71/6739e3abac630540aaeaaece4584c39f88b5f8658ce6ca517efec455e3de/wavedrom-2.0.3.post3.tar.gz (137 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.exit code: 1
  ╰─> [63 lines of output]
      WARNING: The repository located at mirrors.cloud.aliyuncs.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.cloud.aliyuncs.com'.
      ERROR: Could not find a version that satisfies the requirement setuptools_scm (from versions: none)
      ERROR: No matching distribution found for setuptools_scm

解决方案

网上搜索没有成功最后报错信息发现是,
一、setuptools_scm找不到版本号

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

二、阿里源不信任

因此,
一步安装

pip install setuptools_scm

第二步清华源安装

pip install wavedrom -i https://pypi.tuna.tsinghua.edu.cn/simple

game over.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注