当前位置: 首页 > article >正文

scikit-sparse安装

scikit-sparse安装报错如下,可以用如下用

conda install -c conda-forge scikit-sparse

解决

ref: GitHub - EmJay276/scikit-sparse: Sparse matrix tools extending scipy.sparse, but with incompatible licenses

报错:

ERROR: Command errored out with exit status 1:
   command: /home/ubuntu/miniconda3/envs/hhh/bin/python /home/ubuntu/miniconda3/envs/hhh/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp0yaqjjnd
       cwd: /tmp/pip-install-xty9oemb/scikit-sparse_3a6979a4628d461ebb0011a51307aec2
  Complete output (39 lines):
  performance hint: sksparse/cholmod.pyx:379:5: Exception check on '_error_handler' will always require the GIL to be acquired.
  Possible solutions:
  	1. Declare '_error_handler' as 'noexcept' if you control the definition and you're sure you don't want the function to raise exceptions.
  	2. Use an 'int' return type on '_error_handler' to allow an error code to be returned.
  
  Error compiling Cython file:
  ------------------------------------------------------------
  ...
          cholmod_c_start(&self._common)
          assert (_use_long == 0 and self._common.itype == CHOLMOD_INT) \
              or (_use_long == 1 and self._common.itype == CHOLMOD_LONG)
          self._common.print = 0
          self._common.error_handler = (
              <void (*)(int, const char *, int, const char *)>_error_handler)
              ^
  ------------------------------------------------------------
  
  sksparse/cholmod.pyx:435:12: Cannot assign type 'void (*)(int, const char *, int, const char *) except *' to 'void (*)(int, const char *, int, const char *) noexcept'. Exception values are incompatible. Suggest adding 'noexcept' to the type of the value being assigned.
  Compiling sksparse/cholmod.pyx because it changed.
  [1/1] Cythonizing sksparse/cholmod.pyx
  Traceback (most recent call last):
    File "/home/ubuntu/miniconda3/envs/DIPP/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
      main()
    File "/home/ubuntu/miniconda3/envs/DIPP/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/ubuntu/miniconda3/envs/DIPP/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 117, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-q_rue99g/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 332, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=[])
    File "/tmp/pip-build-env-q_rue99g/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 302, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-q_rue99g/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 318, in run_setup
      exec(code, locals())
    File "<string>", line 88, in <module>
    File "/tmp/pip-build-env-q_rue99g/overlay/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1154, in cythonize
      cythonize_one(*args)
    File "/tmp/pip-build-env-q_rue99g/overlay/lib/python3.8/site-packages/Cython/Build/Dependencies.py", line 1321, in cythonize_one
      raise CompileError(None, pyx_file)
  Cython.Compiler.Errors.CompileError: sksparse/cholmod.pyx
  ----------------------------------------
WARNING: Discarding https://pypi.tuna.tsinghua.edu.cn/packages/ca/91/94db555d5c7b0f75ecdf14802613409b9977aa8a92d0925863051e59c17b/scikit-sparse-0.4.6.tar.gz#sha256=f2de653920c2adf666de5c8a28abaa9f2218a1001d2d96e403a1f553938561c3 (from https://pypi.tuna.tsinghua.edu.cn/simple/scikit-sparse/) (requires-python:>=3.6, <3.10). Command errored out with exit status 1: /home/ubuntu/miniconda3/envs/hhh/bin/python /home/ubuntu/miniconda3/envs/hhh/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmp0yaqjjnd Check the logs for full command output.
ERROR: Could not find a version that satisfies the requirement scikit-sparse==0.4.6 (from versions: 0.3, 0.3.1, 0.4, 0.4.1, 0.4.2, 0.4.3, 0.4.4, 0.4.5, 0.4.6, 0.4.7, 0.4.8, 0.4.11, 0.4.12, 0.4.13, 0.4.15)
ERROR: No matching distribution found for scikit-sparse==0.4.6


http://www.kler.cn/a/323242.html

相关文章:

  • python-文件内容操作
  • Python_爬虫3_Requests库网络爬虫实战(5个实例)
  • 若点集A=B则A必能恒等变换地变为B=A这一几何常识推翻直线(平面)公理
  • 小版本大不同 | Navicat 17 新增 TiDB 功能
  • Springboot采用jasypt加密配置
  • 用PHP实现一个简单的http服务器
  • 【LLM多模态】文生视频综述From Sora What We Can See: A Survey of Text-to-Video Generation
  • 万户OA-ezOFFICE fileUpload.controller 任意文件上传漏洞复现
  • 保姆级复现yolov7(论文复现)
  • class 026 哈希表、有序表和比较器的用法
  • Linux云计算 |【第四阶段】PROJECT2-DAY2
  • Nginx+Tomcat负载均衡、反向代理
  • C语言编程-经典易错题1
  • 若依开源系统多数据源整合clickhouse数据库详细步骤
  • C++远端开发环境安装(centos7)
  • 【网络安全安全管理入门必知必会】应急响应之服务器入侵排查,零基础入门到精通,收藏这篇就够了
  • 游戏厅计时器ps5计算时间的软件 佳易王电玩计时计费管理系统操作教程
  • 【有啥问啥】深度理解主动学习:机器学习的高效策略
  • 927解决WSL2上UBuntuz终端卡顿
  • Vue中集中常见的布局方式
  • 赋值运算符重载
  • python 实现harmonic series调和级数算法
  • 现代LLM基本技术整理
  • Android13高通平台拨打/接听只有免提模式,无听筒模式
  • unsqueeze函数、isinstance函数、_VF模块、squeeze函数
  • 爆火!大模型算法岗 100 道面试题全解析,赶紧收藏!