【问题标题】:pip install CrossMap failing on OSX: cannot find os/rand.c?pip install CrossMap 在 OSX 上失败:找不到 os/rand.c?
【发布时间】:2018-04-02 20:46:19
【问题描述】:

只是想运行一个

pip install CrossMap

在 OSX 10.11.6 上安装了 brew 的 python(2.7.12 版)和 pip(9.0.1 版)并遇到此错误:

htslib/hts_os.c:30:10: fatal error: 'os/rand.c' file not found
#include "os/rand.c"
         ^
1 error generated.
error: command 'clang' failed with exit status 1

我到处寻找有关此错误的信息,但它已经空了。这个依赖从何而来,如何安装?

谢谢!

【问题讨论】:

    标签: python macos pip clang


    【解决方案1】:

    CrossMap 依赖于pysam,它是sam tools 的包装器。编译pysam前需要安装htslib。

    【讨论】:

    • 虽然pysam 似乎确实是导致问题的部门。
    • 我不确定brew install htslib 安装了什么。如果只有图书馆——这还不够。 pysam 似乎是需要 htslib 的来源。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2012-04-26
    • 2018-07-06
    • 1970-01-01
    • 2017-05-18
    • 2022-01-16
    • 2018-09-24
    • 1970-01-01
    相关资源
    最近更新 更多