【问题标题】:While installing gluoncv ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly安装 gluoncv 错误:无法为使用 PEP 517 且无法直接安装的 scipy 构建轮子
【发布时间】:2021-06-22 04:38:06
【问题描述】:

我正在尝试安装 gluoncv,但每次都会发生这种情况。 成功构建 ConfigSpace autograd scikit-learn scipy 构建失败。错误:无法为使用 PEP 517 且无法直接安装的 scipy 构建轮子

 Warning: Unused variable ‘t2’ declared at (1) [-Wunused-variable]                                                                                                    
  stat.h:8:31:                                                                                                                                                         
                                                                                                                                                                       
  Warning: Unused variable ‘t3’ declared at (1) [-Wunused-variable]
  stat.h:8:35:
  
  Warning: Unused variable ‘t4’ declared at (1) [-Wunused-variable]
  stat.h:8:39:
  
  Warning: Unused variable ‘t5’ declared at (1) [-Wunused-variable]
  gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/smout.f
  gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/zmout.f
  gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/ivout.f
  gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/icnteq.f
  gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/icopy.f
  gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/ssgets.f
  stat.h:8:27:
  
  Warning: Unused variable ‘t2’ declared at (1) [-Wunused-variable]
  stat.h:8:31:
  
  Warning: Unused variable ‘t3’ declared at (1) [-Wunused-variable]
  stat.h:8:35:
  
  Warning: Unused variable ‘t4’ declared at (1) [-Wunused-variable]
  stat.h:8:39:
  
  Warning: Unused variable ‘t5’ declared at (1) [-Wunused-variable]
  gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/cvout.f
  gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/dmout.f
  gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/svout.f
  gfortran:f77: scipy/sparse/linalg/eigen/arpack/ARPACK/UTIL/zvout.f
  gfortran:f77: /tmp/pip-install-o_n11_7k/scipy_7cdb917d5aa44c05baea31bcea7311d5/scipy/_build_utils/src/wrap_g77_abi_f.f
  error: Command "/usr/bin/gfortran -Wall -g -ffixed-form -fno-second-underscore -fPIC -O3 -funroll-loops -Iscipy/sparse/linalg/eigen/arpack/ARPACK/SRC -I/tmp/pip-build-env-0hr1_z41/overlay/lib/python3.9/site-packages/numpy/core/include -c -c scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/cnaup2.f -o build/temp.linux-x86_64-3.9/scipy/sparse/linalg/eigen/arpack/ARPACK/SRC/cnaup2.o" failed with exit status 1
  ----------------------------------------
  ERROR: Failed building wheel for scipy
Successfully built ConfigSpace autograd scikit-learn
Failed to build scipy
ERROR: Could not build wheels for scipy which use PEP 517 and cannot be installed directly

【问题讨论】:

    标签: python scipy pip


    【解决方案1】:

    我在 MacOs 上安装 gluoncv 时遇到了非常相似的错误,但错误发生在 ConfigSpace:“无法为使用 PEP 517 且无法直接安装的 ConfigSpace 构建轮子”

    如果您收到上述错误并且部分错误日志显示“不支持的架构”,或者您还遇到了许多类似这样的错误:

    unknown type name '__int32_t'; did you mean '__int128_t' 
    

    我通过将 Python 升级到版本 3.8.6 来修复它(我在版本 3.8.2 中遇到了问题)。

    【讨论】:

    • 其实我的python版本是3.9.2。
    • 我知道有时这是不可能的,但您是否尝试过降级?至少只是看看它是否有效并验证它是 gluoncv-python 版本问题。
    猜你喜欢
    • 2020-08-05
    • 2020-11-01
    • 2021-04-14
    • 2021-02-28
    • 2020-10-16
    • 1970-01-01
    • 1970-01-01
    • 2021-03-07
    • 2020-12-23
    相关资源
    最近更新 更多