statsmodels 在 ubuntu18.04 容器主机上安装失败,主机是 redhat linux,有防火墙限制。但错误是运行 cythonize 失败

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

在 Redhat linux 上托管的 ubuntu18.04 容器上安装 statsmodels 时失败。运行时错误:运行 cythonize 失败

#pip install statsmodels

在 ubuntu18.04 的 docker 容器中,我尝试在 python 虚拟环境中安装 statsmodels。它失败并显示“运行 Cythonize 失败”。 Numpy、pandas、scipy、patsy、cython==0.29 也已安装。

statsmodels
1个回答
0
投票

以下命令解决了版本不兼容的问题:

python3 -m pip install numpy~=1.24.0 scipy~=1.9.0 cython~=0.29.30 pandas~=1.5.0 patsy "setuptools_scm[toml]"
python3 -m pip install statsmodels --no-build-isolation
© www.soinside.com 2019 - 2024. All rights reserved.