pysam是python下的处理bam、sam、bcf等序列比对文件格式的功能强大的包!linux下的安装过程:
#尝试直接安装
pip3 install pysam
#安装报错
Collecting pysam
Downloading https://files.pythonhosted.org/packages/25/7e/098753acbdac54ace0c6dc1f8a74b54c8028ab73fb027f6a4215487d1fea/pysam-0.15.4.tar.gz (1.6MB)
100% |████████████████████████████████| 1.6MB 33kB/s
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-cajapnc2/pysam/setup.py", line 193, in <module>
.format(fn))
ValueError: no cython installed, but can not find pysam/libchtslib.c.Make sure that cython is installed when building from the repository
# pysam: no cython available - using pre-compiled C
----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-cajapnc2/pysam
python3.7 需要更新安装最新的cython,
pip3 install --upgrade pip
pip3 install Cython --install-option="--no-cython-compile"
pip3 install pysam
#成功完成
网友评论