需基于Python3.11安装旧版本tox CLI的问题求助
问题:无法安装指定版本tox(适配Python3.11)
无法使用最新版本的tox,因为它会自动安装Python3.12,这给我带来了其他问题,因此我必须使用Python3.11。
Brew安装尝试失败
尝试通过brew安装旧版本tox失败:
% brew install tox@4.11.3 Warning: No available formula with the name "tox@4.11.3". ==> Searching for similarly named formulae and casks... Error: No formulae or casks found for tox@4.11.3.
Tox官方安装方式无效
使用pip安装指定版本tox后,找不到tox命令行工具:
执行安装命令:
% python3 -m pip install --user tox==4.11.3
调用tox时提示:
% tox -e qa zsh: command not found: tox
另外,尝试安装pipx-in-pipx也失败,执行命令:
python -m pip install pipx-in-pipx --user
出现以下错误:
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for pipx-in-pipx Running setup.py clean for pipx-in-pipx Failed to build pipx-in-pipx ERROR: Could not build wheels for pipx-in-pipx, which is required to install pyproject.toml-based projects
内容的提问来源于stack exchange,提问作者Sam Germain
相关产品推荐
相关产品推荐

