python无法安装cvxpy包 | python | python 技术论坛-江南app体育官方入口



麻烦大师帮忙解决一下,谢谢!

讨论数量: 3
jason990420

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;
2个月前
(楼主) 2个月前
jason990420 (作者) 2个月前

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!
网站地图