AI和Python 学习整理

SoloSpeech 项目安装和运行测试 20250817

PHPer 2025-08-17 1 0 0

实测了Kimi辅助编程还行,豆包辅助编程是真不行。20250817 21:32

腾讯元宝可以,还在测试和kimi那个更适合辅助编程 20250817 23:39

装 GPU 版 PyTorch

pip install torch==2.4.1+cu121 torchaudio==2.4.1+cu121 torchvision==0.19.1+cu121 --index-url https://download.pytorch.org/whl/cu121

先运行requirements-pip.txt

pytorch-lightning==2.4.0
torch==2.4.1
torch-ema==0.3
torch-optimizer==0.1.0
torch-stoi==0.2.3
torchaudio==2.4.1
torchmetrics==0.11.4
torchsde==0.2.6
torchvision==0.19.1
tornado==6.4.2
tqdm==4.63.0
matplotlib==3.7.5
pesq==0.0.4
wandb==0.19.1
pandas==2.0.3
diffusers==0.30
librosa==0.9.2
speechbrain==1.0.2
python_speech_features==0.6
einops==0.8.0
alias_free_torch==0.0.6
vector_quantize_pytorch==1.14.8

遇到报错

 Downloading https://pypi.tuna.tsinghua.edu.cn/packages/37/23/a30214b4c1f2bea24cc1197ef48d67824fbc41d5cf5472b17c37fef6002c/propcache-0.2.0-cp38-cp38-win_amd64.whl (45 kB)
Building wheels for collected packages: pesq, python_speech_features
  Building wheel for pesq (setup.py) ... error
  error: subprocess-exited-with-error
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [32 lines of output]
      G:\ProgramData\miniconda3\envs\solospeech\lib\site-packages\setuptools\__init__.py:94: _DeprecatedInstaller: setuptools.installer and fetch_build_eggs are deprecated.
      !!
              ********************************************************************************
              Requirements should be satisfied by a PEP 517 installer.
              If you are using pip, you can try `pip install --use-pep517`.
              ********************************************************************************
      !!
        dist.fetch_build_eggs(dist.setup_requires)
      G:\ProgramData\miniconda3\envs\solospeech\lib\site-packages\setuptools\_distutils\dist.py:261: UserWarning: Unknown distribution option: 'tests_require'
        warnings.warn(msg)
      running bdist_wheel
      running build
      running build_py
      creating build\lib.win-amd64-cpython-38\pesq
      copying pesq\_pesq.py -> build\lib.win-amd64-cpython-38\pesq
      copying pesq\__init__.py -> build\lib.win-amd64-cpython-38\pesq
      copying pesq\cypesq.pyx -> build\lib.win-amd64-cpython-38\pesq
      copying pesq\dsp.h -> build\lib.win-amd64-cpython-38\pesq
      copying pesq\pesq.h -> build\lib.win-amd64-cpython-38\pesq
      copying pesq\pesqio.h -> build\lib.win-amd64-cpython-38\pesq
      copying pesq\pesqmain.h -> build\lib.win-amd64-cpython-38\pesq
      copying pesq\pesqpar.h -> build\lib.win-amd64-cpython-38\pesq
      copying pesq\dsp.c -> build\lib.win-amd64-cpython-38\pesq
      copying pesq\pesqdsp.c -> build\lib.win-amd64-cpython-38\pesq
      copying pesq\pesqmod.c -> build\lib.win-amd64-cpython-38\pesq
      running build_ext
      Compiling pesq/cypesq.pyx because it changed.
      [1/1] Cythonizing pesq/cypesq.pyx
      building 'cypesq' 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 likely not a problem with pip.
  ERROR: Failed building wheel for pesq
  Running setup.py clean for pesq
  Building wheel for python_speech_features (setup.py) ... done
  Created wheel for python_speech_features: filename=python_speech_features-0.6-py3-none-any.whl size=5876 sha256=cbee3eec30d4c5d493fab8a8271fbf705dd996f3b1009735613683a04c7dff22
  Stored in directory: c:\users\administrator\appdata\local\pip\cache\wheels\20\98\cf\2543589065d9e69f0e70752d8ec6594f03f2615424a877b899
Successfully built python_speech_features
Failed to build pesq
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pesq)
(solospeech) D:\python\SoloSpeech>

111111111111

根据kimi提供的方法ok了,Microsoft C++ Build Tools是安装上了,但是后面还是安装不上pesq

解决方法

1.安装 Microsoft C++ Build Tools

根据错误提示,你需要安装 Microsoft C++ Build Tools,这是一套独立的工具,用于编译 C++ 代码,而不需要安装完整的 Visual Studio。

步骤:

  1. 访问 Microsoft C++ Build Tools 官方下载页面
  2. 下载并安装 Build Tools for Visual Studio。
  3. 在安装过程中,确保选择了以下组件:
    • C++ compilers and standard libraries
    • Windows SDK
    • C++ CMake tools for Windows(可选,如果你使用 CMake)
    • C++ AddressSanitizer(可选,如果你需要调试工具)

108f7b4e61-qq20250817-155740-2_normal.png

20250817 16:02

安装完成后,重新运行 pip install -r requirements-pip.txt,或者pip install pesq,还是之前的报错

在bing上搜 building 'cypesq' extension error: Microsoft Visual C++ 14.0 or greater is required. ...

立即注册

更新于:2025-08-18 00:48:17
    您需要登录后才可以评论。 立即注册
    相关内容

    这里整理下用PHP写的项目

    10个PHP免费开源轻社区系统(亲测Flarum可用但代码不好维护,Nodebb不错不过...

    这里整理一些网上找到的IT项目

    All in Web | 远程桌面网关-Apache Guacamole

    gitlab 的简介

    【教程】使用腾讯云轻量应用服务器搭建 Guacamole 远程桌面代理服务器,让境...

    apache 开源项目全家桶 2020年12月中文介绍

    JumpServer 架构浅解

    手把手从0开始教你搭建Jumpserver,为服务器安全保驾护航!

    一步步安装Jumpserver堡垒机图文详解(官方教程版),从此爽歪歪!

    [Awesome Github] -2020_07_25

    Windows系统Git安装教程(详解Git安装过程)

    Aria2:windows上的详细使用方法

    开源论坛:社区选择Discourse(​在github上论坛排名第一 ,35.8K个星星)

    python代码整理(2022年4月-2024年3月)

    Python和PHP获取百度url跳转的真实地址代码(2022年4月实测有效)

    Pip/python-如何查看已安装的包有哪些版本?如何查看某个包存在哪些版本?pip...

    用undetected_chromedriver代替selenium解决浏览器打不开网页

    sublime text下 Python 问题:TabError: inconsistent use of tabs and s...

    Python的扩展和模块安装时遇到的问题整理

    windows环境下python3安装Crypto扩展

    pip install​ 报错 ERROR: Can not execute setup.py since setuptools i...

    运行python -V 报错 -bash: python: command not found

    protobuf requires Python ‘>=3.7‘ but the running Python is 3.6.5的解...

    Yii2项目个人整理(因Github访问不稳定,自己整理下,方便用)

    Yii2项目yii-starter-kit/yii2-starter-kit

    安装中文版的opencart-v37报错

    OpenCart 中文版/外贸版(代码各种坑,安装半天没安装上)

    Feehi_CMS一款让人很舒服的Yii2应用,适合企业建站等CMS建站

    rageframe2基于Yii2

    推荐内容

    怎样使用V2Ray代理和SSTap玩如魔兽世界/绝地求生/LOL台服/战地3/黑色沙漠/彩...

    sstap游戏代理教程 从此玩如魔兽世界/绝地求生/LOL台服/战地3/黑色沙漠/彩虹六...

    BT磁力搜索网站汇总和找不到的资源

    什么是磁力链接,您如何使用?

    Z-Library:全球最大的数字图书馆/含打不开的解决方案/镜像

    使用V2Ray的mKCP协议加速游戏

    v2rayN已停止工作

    【车险课堂】什么是无赔款优待系数ncd,你“造”吗?