Cloufield / gwaslab

A Python package for handling and visualizing GWAS summary statistics. https://cloufield.github.io/gwaslab/
GNU General Public License v3.0
162 stars 25 forks source link

ERROR: Could not build wheels for pySAM, which is required to install pyproject.toml-based projects #98

Open FrederickGri opened 5 months ago

FrederickGri commented 5 months ago

Please help me. I have tried to install gwaslab via pip install gwaslab but every time i tried this error message poped up

ERROR: Could not build wheels for pySAM, which is required to install pyproject.toml-based projects."

i have installed pySAM as i type pip install pySAM the terminal responded with

Requirement already satisfied: pysam in /opt/anaconda3/lib/python3.11/site-packages (0.22.1)

I am using python 3.11.7 and trying to install the newest version of gwas( gwaslab 3.4.45) Can anyone please tells be what is wrong here? ![Uploading Screenshot 2024-06-11 at 11.38.39 AM.png…]()

FrederickGri commented 5 months ago

some body help, I am very desperate. And I am using mac book pro 2019 sonoma 14.5

Cloufield commented 5 months ago

Hi, Sorry for the error. Actually, I restricted Python version to 3.9 or 3.10 for gwaslab installation. Maybe "pip install gwaslab" without specifying versions just tries to install an outdated version of gwaslab if you are using other python versions. Could you please try "pip install gwaslab==3.4.45" in a python 3.9 or 3.10 environment?

FYI, there was a similar issue related to pySAM.

FrederickGri commented 5 months ago

Thank you for responding in such extraodanary speed. yes I tried this way and another error message poped up

ERROR: Ignored the following versions that require a different python version: 3.4.25 Requires-Python <=3.9,>=3.8; 3.4.26 Requires-Python <=3.9,>=3.8; 3.4.27 Requires-Python <=3.9,>=3.8; 3.4.28 Requires-Python <=3.9,>=3.8; 3.4.29 Requires-Python <=3.9,>=3.8; 3.4.30 Requires-Python <=3.10,>=3.8; 3.4.31 Requires-Python <=3.10,>=3.8; 3.4.32 Requires-Python <=3.10,>=3.8; 3.4.33 Requires-Python <=3.10,>=3.8; 3.4.34 Requires-Python <=3.10,>=3.8; 3.4.35 Requires-Python <=3.10,>=3.8; 3.4.36 Requires-Python <=3.10,>=3.8; 3.4.37 Requires-Python <=3.10,>=3.9; 3.4.38 Requires-Python <=3.10,>=3.9; 3.4.39 Requires-Python <=3.10,>=3.9; 3.4.40 Requires-Python <=3.10,>=3.9; 3.4.41 Requires-Python <=3.10,>=3.9; 3.4.42 Requires-Python <=3.10,>=3.9; 3.4.43 Requires-Python <=3.10,>=3.9; 3.4.44 Requires-Python <=3.10,>=3.9; 3.4.45 Requires-Python <3.11,>=3.9 ERROR: Could not find a version that satisfies the requirement gwaslab==3.4.45 (from versions: 0.0.1, 0.0.2, 0.0.3, 0.0.4, 0.0.5, 0.0.6, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 3.0.0, 3.0.1, 3.0.2, 3.1.0, 3.1.1, 3.1.2, 3.2.0, 3.3.0, 3.3.1, 3.3.2, 3.3.3, 3.3.4, 3.3.5, 3.3.6, 3.3.7, 3.3.8, 3.3.9, 3.3.10, 3.3.11, 3.3.12, 3.3.13, 3.3.14, 3.3.15, 3.3.16, 3.3.17, 3.3.18, 3.3.19, 3.3.20, 3.3.21, 3.3.22, 3.3.23, 3.3.24, 3.4.0, 3.4.1, 3.4.2, 3.4.3, 3.4.4, 3.4.5, 3.4.6, 3.4.7, 3.4.8, 3.4.9, 3.4.10, 3.4.11, 3.4.12, 3.4.13, 3.4.14, 3.4.15, 3.4.16, 3.4.17, 3.4.18, 3.4.19, 3.4.20, 3.4.21, 3.4.22, 3.4.23, 3.4.24) ERROR: No matching distribution found for gwaslab==3.4.45

Cloufield commented 5 months ago

Looks like you are using another version of python. I am wondering if your python is 3.9 or 3.10?

Cloufield commented 5 months ago

For 3.11, I haven't tested it yet. But if you want to have a try, you can install it with pip install --ignore-requires-python gwaslab==3.4.45.

FrederickGri commented 5 months ago

I will try it now, thank you so much

FrederickGri commented 5 months ago

It just worked, thank you so much. I have been stucked here for a while, you just saved my asses.