对argoverse api安装失败的多种尝试(numpy,sklearn,cmake,pip版本问题)

以下操作环境为macOS apple silicon平台的anaconda创建的全新的python3.10虚拟环境

1. numpy版本问题:

Collecting numpy==1.19 (from argoverse==1.1.0)
  Using cached https://pypi.tuna.tsinghua.edu.cn/packages/f1/2c/717bdd12404c73ec0c8c734c81a0bad7048866bc36a88a1b69fd52b01c07/numpy-1.19.0.zip (7.3 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Preparing metadata (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [24 lines of output]

修复方法:进入argoverse-api-master/setup.py 修改这一段代码:(注释掉这两行)

install_requires=[
        "colour",
        "descartes",
        "h5py",
        "hydra-core==1.1.0",
        "imageio",
        "lapsolver",
        "matplotlib",
        "motmetrics==1.1.3",
        "numba",
       # "numpy==1.19",
        "omegaconf==2.1.0",
        "opencv-python>=4.1.0.25",
        "pandas>=0.23.1",
        "pillow",
        "polars",
        "pyntcloud>=0.1.0",
        "scipy>=1.4.0",
        "shapely",
        #"sklearn",
        "tqdm",
        "typing_extensions",
    ],
)

然后就是安装低版本numpy:

pip install numpy==1.24.3 

2.经过处理后报错变为(pip版本问题):

WARNING: Ignoring version 2.1.0 of omegaconf since it has invalid metadata:
Requested omegaconf==2.1.0 from https://pypi.tuna.tsinghua.edu.cn/packages/f9/96/1966b48bfe6ca64bfadfa7bcc9a8d73c5d83b4be769321fcc5d617abeb0c/omegaconf-2.1.0-py3-none-any.whl (from argoverse==1.1.0) has invalid metadata: .* suffix can only be used with `==` or `!=` operators
    PyYAML (>=5.1.*)
            ~~~~~~^
Please use pip<24.1 if you need to use this version.
INFO: pip is looking at multiple versions of argoverse to determine which version is compatible with other requirements. This could take a while.
ERROR: Ignored the following yanked versions: 1.0.0, 1.0.1, 1.0.2, 2.0.0rc1, 2.0.0rc2, 2.0.0rc22, 2.0.0rc23, 2.0.0rc24, 2.0.0rc25, 2.0.0rc26, 2.0.0rc27, 2.0.0rc28, 2.0.0rc29, 2.0.1rc1, 2.0.1rc2, 2.0.1rc3, 2.0.1rc4, 2.0.1rc5, 2.2.0
ERROR: Ignored the following versions that require a different python version: 0.52.0 Requires-Python >=3.6,<3.9; 0.52.0rc3 Requires-Python >=3.6,<3.9; 0.53.0 Requires-Python >=3.6,<3.10; 0.53.0rc1.post1 Requires-Python >=3.6,<3.10; 0.53.0rc2 Requires-Python >=3.6,<3.10; 0.53.0rc3 Requires-Python >=3.6,<3.10; 0.53.1 Requires-Python >=3.6,<3.10; 0.54.0 Requires-Python >=3.7,<3.10; 0.54.0rc2 Requires-Python >=3.7,<3.10; 0.54.0rc3 Requires-Python >=3.7,<3.10; 0.54.1 Requires-Python >=3.7,<3.10
ERROR: Could not find a version that satisfies the requirement omegaconf==2.1.0 (from argoverse) (from versions: 1.0.3, 1.0.4, 1.0.5, 1.0.6, 1.0.7, 1.0.8, 1.0.9, 1.0.10, 1.0.11, 1.0.12, 1.0.13, 1.0.14, 1.0.16, 1.0.17, 1.1.0, 1.1.1, 1.1.2, 1.1.3, 1.1.4, 1.1.5, 1.1.6, 1.1.7, 1.1.8, 1.1.9, 1.1.10, 1.2.0, 1.2.1, 1.3.0rc1, 1.3.0rc2, 1.3.0rc3, 1.3.0rc4, 1.3.0rc5, 1.3.0rc6, 1.3.0rc7, 1.3.0rc8, 1.3.0rc9, 1.3.0rc10, 1.3.0, 1.4.0rc1, 1.4.0rc2, 1.4.0rc3, 1.4.0rc4, 1.4.0, 1.4.1rc1, 1.4.1, 2.0.0rc3, 2.0.0rc4, 2.0.0rc5, 2.0.0rc6, 2.0.0rc7, 2.0.0rc8, 2.0.0rc9, 2.0.0rc10, 2.0.0rc11, 2.0.0rc12, 2.0.0rc13, 2.0.0rc14, 2.0.0rc15, 2.0.0rc16, 2.0.0rc17, 2.0.0rc18, 2.0.0rc19, 2.0.0rc20, 2.0.0rc21, 2.0.0, 2.0.1rc6, 2.0.1rc7, 2.0.1rc8, 2.0.1rc9, 2.0.1rc10, 2.0.1rc11, 2.0.1rc12, 2.0.1rc13, 2.0.1, 2.0.2rc1, 2.0.2rc2, 2.0.2, 2.0.3, 2.0.4, 2.0.5, 2.0.6, 2.1.0.dev1, 2.1.0.dev2, 2.1.0.dev3, 2.1.0.dev4, 2.1.0.dev5, 2.1.0.dev6, 2.1.0.dev7, 2.1.0.dev8, 2.1.0.dev9, 2.1.0.dev10, 2.1.0.dev11, 2.1.0.dev12, 2.1.0.dev13, 2.1.0.dev14, 2.1.0.dev15, 2.1.0.dev16, 2.1.0.dev17, 2.1.0.dev18, 2.1.0.dev19, 2.1.0.dev20, 2.1.0.dev21, 2.1.0.dev22, 2.1.0.dev23, 2.1.0.dev24, 2.1.0.dev25, 2.1.0.dev26, 2.1.0.dev27, 2.1.0rc1, 2.1.0, 2.1.1, 2.1.2, 2.2.0.dev1, 2.2.0.dev2, 2.2.0.dev3, 2.2.0.dev4, 2.2.0.dev5, 2.2.1, 2.2.2, 2.2.3, 2.3.0.dev0, 2.3.0.dev1, 2.3.0.dev2, 2.3.0, 2.4.0.dev0, 2.4.0.dev1, 2.4.0.dev2, 2.4.0.dev3)
ERROR: No matching distribution found for omegaconf==2.1.0

修复方法:

pip install pip==24.0

3.sklearn问题:

error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [15 lines of output]

 修复方法:进入argoverse-api-master/setup.py 修改这一段代码:(注释掉这两行)(numpy, sklearn)

install_requires=[
        "colour",
        "descartes",
        "h5py",
        "hydra-core==1.1.0",
        "imageio",
        "lapsolver",
        "matplotlib",
        "motmetrics==1.1.3",
        "numba",
       # "numpy==1.19",
        "omegaconf==2.1.0",
        "opencv-python>=4.1.0.25",
        "pandas>=0.23.1",
        "pillow",
        "polars",
        "pyntcloud>=0.1.0",
        "scipy>=1.4.0",
        "shapely",
        #"sklearn",
        "tqdm",
        "typing_extensions",
    ],
)

4.以上操作后又出现新的报错 (cmake问题):

Building wheel for lapsolver (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py bdist_wheel did not run successfully.
  │ exit code: 1
  ╰─> [141 lines of output]

...

raise RuntimeError("CMake must be installed to build the following extensions: " +
      RuntimeError: CMake must be installed to build the following extensions: lapsolverc
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for lapsolver
  Running setup.py clean for lapsolver
Successfully built argoverse antlr4-python3-runtime
Failed to build lapsolver
ERROR: Could not build wheels for lapsolver, which is required to install pyproject.toml-based projects

修复方法:

pip install cmake

5.结果:

DEPRECATION: omegaconf 2.1.0 has a non-standard dependency specifier PyYAML>=5.1.*. pip 24.1 will enforce this behaviour change. A possible replacement is to upgrade to a newer version of omegaconf or contact the author to suggest that they release a version with a conforming dependency specifiers. Discussion can be found at https://github.com/pypa/pip/issues/12063
Installing collected packages: argoverse
  Attempting uninstall: argoverse
    Found existing installation: argoverse 1.1.0
    Uninstalling argoverse-1.1.0:
      Successfully uninstalled argoverse-1.1.0
Successfully installed argoverse-1.1.0

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值