pysam-developers / pysam

Pysam is a Python package for reading, manipulating, and writing genomics data such as SAM/BAM/CRAM and VCF/BCF files. It's a lightweight wrapper of the HTSlib API, the same one that powers samtools, bcftools, and tabix.
https://pysam.readthedocs.io/en/latest/
MIT License
774 stars 274 forks source link

Error when I install my pysam! #1224

Open Neo-xbx-00 opened 1 year ago

Neo-xbx-00 commented 1 year ago

Hello, I found I can't install the newest pysam. I face the error like this: error.txt However, I do install the liblzma and htslib. Please help give me some clue?

Neo-xbx-00 commented 1 year ago

OK, I have succeed. If other people face the same issues like me, I'd like to share my experience with you. So simple... Just make a new environment with python (I chose the newest version to date, 3.11), and "pip install pysam"

keenhl commented 10 months ago

Thanks so much for posting the solution. I was just now having a similar installation error under python 3.9. I created a new conda environment with python 3.11 and was able to sucessfully install pysam version 0.22.