ERROR: Could not build wheels for ml-dtypes, optree, which is required to install pyproject.toml-based projects

 

ERROR: Could not build wheels for ml-dtypes, optree, which is required to install pyproject.toml-based projects

 

pip install ml-dtypes

ml_dtypes-0.5.3.tar.gz (692 kB)

g++: 错误:unrecognized command line option ‘-std=c++17’
ERROR: Could not build wheels for ml-dtypes, which is required to install pyproject.toml-based projects

实质是包之间不匹配。安装包的时候,尝试不同的版本。

 

pip install ml-dtypes==

ERROR: Could not find a version that satisfies the requirement ml-dtypes== (from versions: 0.0.1, 0.0.2rc4, 0.0.2rc5, 0.0.2, 0.0.3, 0.0.4, 0.1.0, 0.2.0, 0.3.0, 0.3.1, 0.3.2, 0.4.0b1, 0.4.0, 0.4.1, 0.5.0, 0.5.1, 0.5.3)
ERROR: No matching distribution found for ml-dtypes==

pip install ml-dtypes==0.5.0

pip install optree==
ERROR: Ignored the following yanked versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.4.1, 0.4.2, 0.5.0, 0.5.1, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.9.1, 0.9.2, 0.12.0
ERROR: Could not find a version that satisfies the requirement optree== (from versions: 0.10.0, 0.11.0, 0.12.1, 0.13.0, 0.13.1, 0.14.0rc1, 0.14.0, 0.14.1, 0.15.0, 0.16.0, 0.17.0)
ERROR: No matching distribution found for optree==
pip install optree==0.16.0

pip install tensorflow==
ERROR: Could not find a version that satisfies the requirement tensorflow== (from versions: 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.6.0rc0, 2.6.0rc1, 2.6.0rc2, 2.6.0, 2.6.1, 2.6.2, 2.6.3, 2.6.4, 2.6.5, 2.7.0rc0, 2.7.0rc1, 2.7.0, 2.7.1, 2.7.2, 2.7.3, 2.7.4, 2.8.0rc0, 2.8.0rc1, 2.8.0, 2.8.1, 2.8.2, 2.8.3, 2.8.4, 2.9.0rc0, 2.9.0rc1, 2.9.0rc2, 2.9.0, 2.9.1, 2.9.2, 2.9.3, 2.10.0rc0, 2.10.0rc1, 2.10.0rc2, 2.10.0rc3, 2.10.0, 2.10.1, 2.11.0rc0, 2.11.0rc1, 2.11.0rc2, 2.11.0, 2.11.1, 2.12.0rc0, 2.12.0rc1, 2.12.0, 2.12.1, 2.13.0rc0, 2.13.0rc1, 2.13.0rc2, 2.13.0, 2.13.1, 2.14.0rc0, 2.14.0rc1, 2.14.0, 2.14.1, 2.15.0rc0, 2.15.0rc1, 2.15.0, 2.15.0.post1, 2.15.1, 2.16.0rc0, 2.16.1, 2.16.2, 2.17.0rc0, 2.17.0rc1, 2.17.0, 2.17.1, 2.18.0rc0, 2.18.0rc1, 2.18.0rc2, 2.18.0, 2.18.1, 2.19.0rc0, 2.19.0, 2.19.1, 2.20.0rc0, 2.20.0)
ERROR: No matching distribution found for tensorflow==2.18.1

AttributeError: module 'numpy.linalg._umath_linalg' has no attribute '_ilp64'

在使用 NumPy 库时遇到 AttributeError: module 'numpy.linalg._umath_linalg' has no attribute '_ilp64' 错误,通常是因为你的代码试图访问一个不存在的属性。在 NumPy 的较新版本中,尤其是在 1.20 版本之后,_ilp64 这个属性已经被移除或不再被公开使用

numpy-2.0.2 
pip install numpy==1.22.4


 

posted @ 2025-10-03 17:32  emanlee  阅读(23)  评论(0)    收藏  举报