Skip to content

ModuleNotFoundError: No module named 'distutils' when installing. #101

@roccomoretti

Description

@roccomoretti

The installation instructions as written currently fail for recent-ish environments. The distutils module which the setup.py script relies on was removed from the standard library in Python 3.12.

While long-term the updating of setup.py to account for the distutils removal would likely be ideal, a workaround is to explicitly specify Python version 3.11 (or earlier), which still has distutils availible. -- e.g. replace the current first line of installation with something like conda create -n ANARCI -c conda-forge biopython python=3.11 -y to make an environment with a compatible version of python.

(Even then, installation outputs a warning message with a link to https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html -- the program still works, though.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions