简体   繁体   English

无法在Python 3.6中使用pip安装pysam

[英]Can't install pysam with pip in Python 3.6

Macbook Mac OSX 10.12.6 Python 3.6.2 cython 0.28.5 pip 18.0 Macbook Mac OSX 10.12.6 Python 3.6.2 cython 0.28.5 pip 18.0

I'm trying to install pysam: 我正在尝试安装pysam:

pip3 install pysam

It keeps hitting an error at: 它不断在以下位置出现错误:

creating build/temp.macosx-10.6-intel-3.6/htslib/cram
htslib/cram/cram_io.c:63:10: fatal error: 'os/lzma_stub.h' file not found
#include "os/lzma_stub.h"
         ^~~~~~~~~~~~~~~~
1 error generated.
error: command '/usr/bin/clang' failed with exit status 1

Seems like this issue , this , and this were version issues. 似乎是这个问题this是版本问题。 But I've tried pip3 install pysam==0.13 and 0.14 and 0.15 with the same results. 但是我尝试了pip3 install pysam==0.130.140.15 ,结果相同。

Suggestions? 建议?

I really don't want to deal with installing conda... 真的不想处理安装conda ...

My mistake! 我的错! pip3 install pysam==0.13 actually DOES work. pip3 install pysam==0.13实际上可以工作。 Just leaving this here for posterity. 只是为了后代而留在这里。

Clearly, you are missing lzma , which is now part of xz library ( https://tukaani.org/xz/ ). 显然,您缺少lzma ,它现在是xz库( https://tukaani.org/xz/ )的一部分。 Install that and see if it works. 安装它,看看是否可行。 In OSX, you can install it using homebrew: brew install xz . 在OSX中,可以使用自制软件安装它: brew install xz

Another option is to install htslib ( http://www.htslib.org/download/ ), or samtools (can be found in the htslib url). 另一种选择是安装htslibhttp://www.htslib.org/download/ )或samtools(可以在htslib网址中找到)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM