esa / pygmo2

A Python platform to perform parallel computations of optimisation tasks (global and local) via the asynchronous generalized island model.
https://esa.github.io/pygmo2/
Mozilla Public License 2.0
436 stars 56 forks source link

[BUG] Installing via pip fails #124

Closed BenediktPrusas closed 1 year ago

BenediktPrusas commented 1 year ago

When installing the latest version via pip install pygmo i get the following error:

ERROR: pygmo==2.19.0 from https://files.pythonhosted.org/packages/e2/12/090ba61479f60d5177a0048736d09dc028b2d65063ed44cb952df506336f/pygmo-v2.19.0.tar.gz does not appear to be a Python project: neither 'setup.py' nor 'pyproject.toml' found.

vicky-nike commented 1 year ago

Having same issue in windows but I'm able to install without any issue in linux. python version: 3.10.10 command: pip install pygmo

bluescarni commented 1 year ago

@BenediktPrusas @vicky-nike there are no pre-built wheels for Windows, so I presume that pip is trying to fetch the source of pygmo and build it.

This won't work because the source tarball is not made to be built with pip, as pygmo uses CMake as build system. In the medium term, we might be able to provide pre-built Windows wheels once projects such as scikit-build-core ( https://github.com/scikit-build/scikit-build-core ) mature, but at the moment pre-built wheels are available only for Linux.

My suggestion would be to either switch to conda, or perhaps to install pygmo in a WSL environment (not tested though).

Closing the issue for now.