max
max copied to clipboard
[Modular CLI]: Installation of PyPI package fails: Failed to fetch wheel / Unsupported archive type
Issue description
When I try to install the package kdelikelihood from PyPi in my magic environment, I receive the following error:
× failed to solve the pypi requirements of 'default' 'linux-64'
├─▶ Failed to build: `kdelikelihood==0.2.1`
├─▶ Failed to install requirements from build-system.requires (install)
├─▶ Failed to prepare distributions
├─▶ Failed to fetch wheel: numpy==1.26.4
├─▶ Failed to extract archive
╰─▶ Unsupported archive type: numpy
This happens regardless of whether I install numpy before (via pypi or not). When I work directly via pip in a conda environment, everything works fine:
pip install kdelikelihood
Potential relevant options in the setup.cfg of the package:
[options]
setup_requires =
numpy >= 1.23
cython >= 3
install_requires =
numpy >= 1.23
scipy
matplotlib
py-bobyqa
objectproxypool
Steps to reproduce
Set up a new environment
magic init myenv --format mojoproject
Enter the directory
cd myenv
Try to install the package
magic add --pypi kdelikelihood
Version Info
- magic 0.2.3
- WSL on Windows 10