Sendrowski / fastDFE

Fast and flexible inference of the distribution of fitness effects (DFE), VCF-SFS parsing with ancestral allele and site-degeneracy annotation.
https://fastdfe.readthedocs.io
GNU General Public License v3.0
11 stars 0 forks source link

install error from pip #4

Closed Chenglin20170390 closed 8 months ago

Chenglin20170390 commented 8 months ago

Hi when I type pip install fastdfe

the error occurs

ERROR: Could not find a version that satisfies the requirement fastdfe ERROR: No matching distribution found for fastdfe

Sendrowski commented 8 months ago

Hi! Which python version are you using? Due do fastdfe's dependencies only Python 3.10 and 3.11 are supported. Could it be that you are using a different version? I would recommend using a separate conda environment as described in the docs.

Chenglin20170390 commented 8 months ago

Hi ,my python version iis 3.12.2. I also follow your instruction for install fstDFE by creating a separate conda environment as "environment.yml "

cat environment.yml name: fastdfe channels:

failed

CondaEnvException: Pip failed python --version Python 3.12.2

Sendrowski commented 8 months ago

I suppose it is still installing python 3.12 as the pip dependencies are only added later in a separate step. If you restrict the python versions to 3.10 and 3.11, it should work. I will update this in the docs:

name: fastdfe
channels:
  - defaults
dependencies:
  - python>=3.10,<3.12
  - pip
  - pip:
      - fastdfe
Chenglin20170390 commented 8 months ago

I suppose it is still installing python 3.12 as the pip dependencies are only added later in a separate step. If you restrict the python versions to 3.10 and 3.11, it should work. I will update this in the docs:

name: fastdfe
channels:
  - defaults
dependencies:
  - python>=3.10,<3.12
  - pip
  - pip:
      - fastdfe

Many thanks for your quickly reply, it's working perfect for this command !!

Best, Lin