Skip to content

PHATE incompatible with NumPy ≥2.0 despite requirement specifying numpy>=1.16.0 #169

@nishuang83

Description

@nishuang83

Describe the bug
PHATE currently declares a dependency on numpy>=1.16.0, which allows installation alongside NumPy 2.x. However, PHATE appears to be incompatible with NumPy 2.x releases — it fails at runtime when used with these versions, even though installation completes without error.

To Reproduce

  1. Create a new environment in python 3.10 and install the latest NumPy:
pip install numpy
# installs numpy==2.2.6
  1. Install PHATE:
pip install phate
  1. Try to import or use PHATE:
import phate

Expected behavior
PHATE should work well.

Actual behavior
Show some error

Image

Then, I install 1.x version NumPy:

pip uninstall -y numpy
pip install "numpy<2"

PHATE runs without issues.

System information:

Output of phate.__version__: '1.0.11'

Output of pd.show_versions():

Image

Additional context
The issue does not trigger during installation (since the current requirement allows NumPy 2.x), but happends only at runtime.
A version check or dependency update would prevent confusion for users installing PHATE in new environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions