pipx 上的软件包缺少版本

问题描述 投票:0回答:1

我是 Python 新手,所以我可能缺少有关 pipx 的一些内容,但我被指示安装版本 0.0.13,而我看到的最新版本是 0.0.8:

pipx install insanely-fast-whisper==0.0.13 --force
Fatal error from pip prevented installation. Full pip output in file:
    /Users/jacksteam/Library/Logs/pipx/cmd_2024-02-16_17.30.08_pip_errors.log

Some possibly relevant errors from pip install:
    ERROR: Ignored the following versions that require a different python version: 0.0.10 Requires-Python <=3.11,>=3.8; 0.0.11 Requires-Python <=3.11,>=3.8; 0.0.12 Requires-Python <=3.11,>=3.8; 0.0.13 Requires-Python <=3.11,>=3.8; 0.0.9 Requires-Python <=3.11,>=3.8
    ERROR: Could not find a version that satisfies the requirement insanely-fast-whisper==0.0.13 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5b0, 0.0.5b1, 0.0.5b2, 0.0.5b3, 0.0.5, 0.0.6, 0.0.7, 0.0.8)
    ERROR: No matching distribution found for insanely-fast-whisper==0.0.13

Error installing insanely-fast-whisper from spec 'insanely-fast-whisper==0.0.13'.

我正在使用 Conda 和 Python 3.10。我按照 pipx 文档中的建议使用 Homebrew 安装了 pipx。

python conda pipx
1个回答
0
投票

错误中的关键行是:

ERROR: Ignored the following versions that require a different python version: 
    0.0.10 Requires-Python <=3.11,>=3.8; 
    0.0.11 Requires-Python <=3.11,>=3.8; 
    0.0.12 Requires-Python <=3.11,>=3.8; 
    0.0.13 Requires-Python <=3.11,>=3.8; 
    0.0.9 Requires-Python <=3.11,>=3.8

我使用 Conda 作为 Python 环境,但使用 Homebrew 来安装 pipx。看起来 Pipx 对 Python 版本感到困惑。

删除 Homebrew pipx 后,这有效了:

conda create -n whisper-310 python=3.10
conda activate whisper-310
pip install pipx
pipx install insanely-fast-whisper==0.0.13

如果您看到0.0.8是最新版本,请确保pipx安装在正确的Python版本下。

© www.soinside.com 2019 - 2024. All rights reserved.