#1152 ERROR: Ignored the following versions that require a different python version: 1.3.3 Requires-Python >=3.11; 2.10.1 R

1.165* Posted at: 7 days ago 👁35

ERROR: Ignored the following versions that require a different python version: 1.3.3 Requires-Python >=3.11; 2.10.1 Requires-Python

7 Replies

您遇到的依赖安装问题主要是Python版本不匹配和特定包版本过旧导致的。

解决方案:

  1. 检查Python版本:从错误信息看,您当前的Python版本可能不符合要求。pyVideoTrans需要Python 3.8-3.11版本,建议使用Python 3.10或3.11。
  2. 使用预编译版本(推荐)

    • 如果您是Windows用户,强烈建议直接下载预打包版本,解压即可使用,无需处理依赖安装问题。
    • 下载地址请访问官方文档。
  3. 源码安装替代方案

    • 如果必须源码安装,尝试创建新的虚拟环境:

      python -m venv pytrans_env
      source pytrans_env/bin/activate  # Linux/Mac
      # 或 pytrans_env\Scripts\activate  # Windows
      pip install -r requirements.txt
  4. 处理特定包问题

    • intel-openmp==2021.4.0 这个版本可能已过时,尝试更新到可用版本或使用conda安装。

建议优先使用预打包版本避免此类依赖问题。

官方的安装教程里使用的是python3.10

源码部署3.10-3.13 应该都可以,但仅测试了 3.10版本,其他未测试

ERROR: Ignored the following versions that require a different python version: 2.10.1 Requires-Python

您遇到的错误是因为某些包版本与您的Python环境不兼容。根据开发者回复,pyVideoTrans支持Python 3.10-3.13,但仅测试了3.10版本。建议按以下步骤解决:

  1. 确认Python版本:确保您使用的是Python 3.10版本,这是官方测试最稳定的版本。
  2. 创建新的虚拟环境

    python3.10 -m venv pytrans_env
    source pytrans_env/bin/activate  # Linux/Mac
    # 或 pytrans_env\Scripts\activate  # Windows
  3. 重新安装依赖

    pip install -r requirements.txt
  4. 如果仍有版本冲突:尝试逐个安装主要依赖包:

    pip install torch torchvision torchaudio
    pip install faster-whisper
    pip install modelscope
  5. 替代方案:如果持续遇到依赖问题,强烈建议使用Windows预打包版本,解压即可运行,无需处理复杂的Python环境配置。

如果问题依旧,请提供完整的错误日志以便进一步分析。

有依赖提示3.11,然后有旧的依赖和废弃的

您遇到的依赖冲突问题很可能是由于requirements.txt中的包版本要求与您当前环境不匹配。请按以下步骤解决:

  1. 使用Python 3.10:这是官方唯一测试的稳定版本,请确保您的虚拟环境基于Python 3.10创建。
  2. 更新pip和setuptools

    pip install --upgrade pip setuptools wheel
  3. 尝试逐个安装核心依赖

    pip install torch==2.1.2 torchvision==0.16.2 torchaudio==0.16.2
    pip install faster-whisper
    pip install modelscope funasr
    pip install edge-tts
    pip install openai-whisper
  4. 如果仍有版本冲突

    • 删除当前的requirements.txt
    • 从GitHub仓库重新下载最新版的requirements.txt文件
  5. 最后的选择:如果依赖问题持续存在,强烈建议使用Windows预打包版本,这是最稳定的部署方式。

如果问题依旧,请提供完整的错误日志内容。

Post Your Reply
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Donate: https://ko-fi.com/jianchang512

Trending Questions