讨论数量:
Python 3.12.4
D:\>pip install cvxpy
Collecting cvxpy
Downloading cvxpy-1.5.3-cp312-cp312-win_amd64.whl.metadata (9.0 kB)
...
Installing collected packages: scs, qdldl, ecos, clarabel, osqp, cvxpy
Successfully installed clarabel-0.9.0 cvxpy-1.5.3 ecos-2.0.14 osqp-0.6.7.post3 qdldl-0.1.7.post4 scs-3.2.7
Python 3.13.0
D:\>pip install cvxpy
Collecting cvxpy
Downloading cvxpy-1.5.2.tar.gz (1.6 MB)
---------------------------------------- 1.6/1.6 MB 163.8 kB/s eta 0:00:00
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Run-time dependency openblas found: NO (tried pkgconfig and cmake)
Run-time dependency openblas found: NO (tried pkgconfig and cmake)
Library blas found: NO
Run-time dependency blas found: NO (tried pkgconfig and cmake)
Library lapack found: NO
Run-time dependency lapack found: NO (tried pkgconfig and cmake)
Library cblas found: NO
Run-time dependency cblas found: NO (tried pkgconfig and cmake)
..\meson.build:48:4: ERROR: Problem encountered: OpenBLAS or Netlib BLAS/CBLAS is required on all platforms except Windows, and was not found.
A full log can be found at C:\Users\Jason\AppData\Local\Temp\pip-install-ap1n9pux\scs_8a2f93ce5ac742b28d32eb331eb3166c\.mesonpy-hgscfoj2\meson-logs\meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
[notice] A new release of pip is available: 24.2 -> 24.3.1
[notice] To update, run: python.exe -m pip install --upgrade pip
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Dependencies:
- cvxpy [1.0.21|1.0.25|…|1.1.8] would require python >=3.6,<3.7.0a0 , which can be installed;
- cvxpy [1.0.21|1.0.25|…|1.2.1] would require python >=3.7,<3.8.0a0 , which can be installed;
- cvxpy [1.0.21|1.0.25|…|1.5.3] would require python >=3.8,<3.9.0a0 , which can be installed;
- cvxpy [1.1.10|1.1.11|…|1.5.3] would require python >=3.9,<3.10.0a0 , which can be installed;
- cvxpy [1.1.17|1.1.18|…|1.5.3] would require python >=3.10,<3.11.0a0 , which can be installed;
- cvxpy [1.4.2|1.4.3|1.5.1|1.5.2|1.5.3] would require python >=3.12,<3.13.0a0 , which can be installed;
推荐文章: