报错内容如下:
error: subprocess-exited-with-error
× Building wheel for soxr (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [30 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-cpython-37
creating build\lib.win-amd64-cpython-37\soxr
copying src\soxr\version.py -> build\lib.win-amd64-cpython-37\soxr
copying src\soxr\__init__.py -> build\lib.win-amd64-cpython-37\soxr
running egg_info
writing src\soxr.egg-info\PKG-INFO
writing dependency_links to src\soxr.egg-info\dependency_links.txt
writing requirements to src\soxr.egg-info\requires.txt
writing top-level names to src\soxr.egg-info\top_level.txt
reading manifest file 'src\soxr.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching 'src\soxr\*.pyd'
warning: no previously-included files matching '__pycache__' found anywhere in distribution
warning: no previously-included files matching '*.py[cod]' found anywhere in distribution
warning: no previously-included files matching '.*' found anywhere in distribution
adding license file 'LICENSE.txt'
adding license file 'COPYING.LGPL'
writing manifest file 'src\soxr.egg-info\SOURCES.txt'
copying src\soxr\__init__.pxd -> build\lib.win-amd64-cpython-37\soxr
copying src\soxr\csoxr.pxd -> build\lib.win-amd64-cpython-37\soxr
copying src\soxr\cysoxr.c -> build\lib.win-amd64-cpython-37\soxr
copying src\soxr\cysoxr.pyx -> build\lib.win-amd64-cpython-37\soxr
copying src\soxr\soxr-config.h -> build\lib.win-amd64-cpython-37\soxr
running build_ext
building 'soxr.cysoxr' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[end of output]
note: This error originates from a subprocess, and is
注意,虽然我的这个报错内容有点长,但是我感觉和其它的error: subprocess-exited-with-error
错误是一样的解决方案。
首先,下载以下网盘内的文件:
链接如下:【金山文档】 1-Microsoft Visual C++ Build Tools
https://kdocs.cn/l/cnqZG0GcHMH2
如果网页提示登录,可以不用登录,直接下载即可
下载完以后有如下几个文件:
然后打开镜像ios文件(双击即可)
然后双击VisualCppBuildTools_Full
文件,打开后安装即可。
找了好久,才找到正确的解决方案,网上一大堆升级setuptools的方法只对少数人管用。