首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Numba和llvmlite不能安装在sage cygwin上

Numba和llvmlite不能安装在sage cygwin上
EN

Stack Overflow用户
提问于 2020-11-11 02:47:13
回答 1查看 148关注 0票数 1

即使是在numba 9.1Shell的管理下,我也无法安装SageMath (构建链可能被破坏了,有没有解决办法-- conda install?)。Numba将帮助重塑矩阵和其他东西。

所以这里基本上是一个错误:

代码语言:javascript
复制
$ sage --pip install numba

Collecting numba
  Using cached files.pythonhosted.org/packages/5e/81/6fd1dd064bcf71a79da109e8966a39e2da61d68bf0bd1e0839fa997f8c41/numba-0.51.2.tar.gz
Collecting llvmlite<0.35,>=0.34.0.dev0 (from numba)
  Using cached files.pythonhosted.org/packages/0b/96/07bfa93a103fb9e3e9ae7f9f7c6687ae714aee66b6f3000da3fad71e0aa2/llvmlite-0.34.0.
<......>
    
Traceback (most recent call last):
      File "/tmp/pip-install-ju72yen0/llvmlite/ffi/build.py", line 191, in <module>
        main()
      File "/tmp/pip-install-ju72yen0/llvmlite/ffi/build.py", line 187, in main
        raise RuntimeError("unsupported platform: %r" % (sys.platform,))
    RuntimeError: unsupported platform: 'cygwin'
    error: command '/opt/sagemath-9.1/local/bin/python3.exe' failed with exit status 1

    ----------------------------------------
**Command "/opt/sagemath-9.1/local/bin/python3.exe -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-ju72yen0/llvmlite/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-oiztj3wr/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-ju72yen0/llvmlite/**
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-11-12 22:49:16

我认为这里的问题很明显: llvmlite是numba的依赖项,不支持Cygwin。

似乎在llvmlite构建脚本中有受支持平台的an explicit check,目前不包括cygwin。然而,最近有一个pull request添加了对cygwin的支持,但尚未对其进行审查。

P.S. conda不支持cygwin

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/64774938

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档