tslearn-team / tslearn

The machine learning toolkit for time series analysis in Python
https://tslearn.readthedocs.io
BSD 2-Clause "Simplified" License
2.88k stars 336 forks source link

ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects #399

Open tgermain25 opened 2 years ago

tgermain25 commented 2 years ago

Describe the bug I cannot run download tslearn due to this Error. I have properly download numpy with conda (forge). I use

To Reproduce pip install tslearn

Expected behavior A clear and concise description of what you expected to happen.

Environment (please complete the following information):

Additional context (tslearn) tgermain@MBP-de-Thibaut ~ % pip install tslearn
Collecting tslearn Using cached tslearn-0.5.2.tar.gz (484 kB) Installing build dependencies ... error error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [916 lines of output] Collecting setuptools Using cached setuptools-62.1.0-py3-none-any.whl (1.1 MB) Collecting wheel Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB) Collecting numpy<=1.19 Using cached numpy-1.19.0.zip (7.3 MB) Installing build dependencies: started Installing build dependencies: finished with status 'done' Getting requirements to build wheel: started Getting requirements to build wheel: finished with status 'done' Preparing metadata (pyproject.toml): started Preparing metadata (pyproject.toml): finished with status 'done' Collecting Cython Using cached Cython-0.29.28-py2.py3-none-any.whl (983 kB) Building wheels for collected packages: numpy Building wheel for numpy (pyproject.toml): started Building wheel for numpy (pyproject.toml): finished with status 'error' error: subprocess-exited-with-error

    × Building wheel for numpy (pyproject.toml) did not run successfully.
    │ exit code: 1
    ╰─> [888 lines of output]
        Running from numpy source directory.

""" .......... """"""

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for numpy
  Failed to build numpy
  ERROR: Could not build wheels for numpy, which is required to install pyproject.toml-based projects
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: T

FranciscoJJimenezH commented 1 year ago

@FranciscoJJimenezH

pkg install python make llvm binutils-is-llvm  libandroid-execinfo -y
CFLAGS+=" -U__ANDROID_API__ -D__ANDROID_API__=31" MATHLIB=m pip install numpy==VERSION

U think it will work to install pandas?

romanovj commented 1 year ago

@FranciscoJJimenezH did you try python-pandas from tur-repo?

python-pandas/tur-packages 2.0.3 aarch64 Powerful Python data analysis toolkit

pkg i tur-repo pkg i python-pandas

skyriver1 commented 10 months ago

If the installation fails, it is most likely due to a problem with the python and numpy equivalents python3.8 - numpy 1.17-1.19

monksy commented 8 months ago

So I got this to work via pyenv.

So commands run to do this:

pyenv install 3.8
pyenv local 3.8
pyenv exec pip install pipx
pyenv exec pipx install scanprep
~/.local/bin/scanprep
 ~/.local/bin/scanprep --page-separation --blank-removal ~/test2.pdf clearedpdf.pdf

You probably do not need pipx. This is working with Python 3.8.18.

pandeydeepak0 commented 7 months ago

I was facing a similar issue with GitHub codespaces, downgrading Python worked. numpy 1.26.2 is working with Python 3.10.8 - 2.10.13

es-abdalrhman commented 6 months ago

I used python 3.8.0 and numpy==1.22.0 . It worked for me

I agree that downgrading python version and installing numpy will work

NikitaaSharma commented 5 months ago

I used python 3.8.0 and numpy==1.22.0 . It worked for me

+1, it worked!!!!

ntshvicky commented 3 months ago

So I got this to work via pyenv.

So commands run to do this:

pyenv install 3.8
pyenv local 3.8
pyenv exec pip install pipx
pyenv exec pipx install scanprep
~/.local/bin/scanprep
 ~/.local/bin/scanprep --page-separation --blank-removal ~/test2.pdf clearedpdf.pdf

You probably do not need pipx. This is working with Python 3.8.18.

This work in my mac m1 pro processor.. dont buy mac, ban it..not working anything as developer

DonaldRR commented 3 months ago

Try downgrade the Python version. I tried Python3.8, 3.10 with the same error, while 3.6 works for me.