问题描述
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.