Closed shanghongxie closed 4 months ago
Your cython is too old and since you are using anaconda I recommend upgrading to the a new version of Python >3.9.
(I see that this issue is closed but your suggested solution did not work for me so I propose re-opening this issue. I'd be happy to create a new issue if you prefer.)
I encounter the same wheel build error with Python 3.11 when using pip install fdasrsf
(not in Spyder and not in Anaconda).
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for fdasrsf
Failed to build fdasrsf
ERROR: Could not build wheels for fdasrsf, which is required to install pyproject.toml-based projects
The versions I am using are:
I have updated all other packages using pip-review
so I believe that I have the most recent versions of all requirements.
I have also tried pip install mkl-devel
as suggested here
I encounter the identical error when trying to install via pip
in Python 3.10 and 3.9 environments.
I can install in Anaconda using conda install -c conda-forge fdasrsf
without problems, but when I attempt to install in an isolated Python environment I encounter this wheels build error no matter what I try.
Please help!
Hello again, sorry for multiple posts. I have finally found a solution so I am posting it here just in case anyone else encounters a similar issue. In my case (a) upgrading pip
and (b) installing mkl-devel
have solved my installation problems. The commands I used appear below.
Apologies to Dr. Tucker for clogging up this issue! I thank you very much for creating and distributing this wonderful package!!
on macos:
/usr/local/bin/python3.10 -m venv /Users/USERNAME/envs/fdasrsf
source /Users/USERNAME/envs/fdasrsf/bin/activate
python -m pip install --upgrade pip
pip install mkl-devel
pip install fdasrsf
and on Windows:
C:\Users\USERNAME\AppData\Local\Programs\Python\Python310\python -m venv C:\envs\fdasrsf
C:\envs\fdasrsf\Scripts\activate
python -m pip install --upgrade pip
pip install mkl-devel
pip install fdasrsf
I am using Spyder Python 3.8.1 in MacOS Monterey. I tried to install fdasrsf using the command in Spyder: pip install fdasrsf However, I got the following errors. Could you help me to resolve it?
Building wheel for fdasrsf (pyproject.toml) ... [?25lerror error: subprocess-exited-with-error
× Building wheel for fdasrsf (pyproject.toml) did not run successfully. │ exit code: 1 ╰─> [103 lines of output] generating build/_DP.c (already up-to-date) running bdist_wheel running build running build_py creating build/lib.macosx-10.9-x86_64-cpython-38 creating build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/plot_style.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/curve_stats.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/curve_functions.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/interparc.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/geodesic.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/utility_functions.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/regression.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/elastic_glm_regression.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/tolerance.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/elastic_changepoint.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/gp.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/pcr_regression.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/image_functions.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/init.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/kmeans.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/fPCA.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/bayesian_functions.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/umap_metric.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/time_warping.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/geometry.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/curve_regression.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/rbfgs.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/fPLS.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/boxplots.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/image.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf copying fdasrsf/curve_pcr_regression.py -> build/lib.macosx-10.9-x86_64-cpython-38/fdasrsf running egg_info writing fdasrsf.egg-info/PKG-INFO writing dependency_links to fdasrsf.egg-info/dependency_links.txt writing requirements to fdasrsf.egg-info/requires.txt writing top-level names to fdasrsf.egg-info/top_level.txt reading manifest file 'fdasrsf.egg-info/SOURCES.txt' reading manifest template 'MANIFEST.in' adding license file 'LICENSE.txt' writing manifest file 'fdasrsf.egg-info/SOURCES.txt' running build_ext Installation: Using BLAS library found in: /Users/shanghongxie/opt/anaconda3/lib/libmkl_rt.dylib
note: This error originates from a subprocess, and is likely not a problem with pip. ERROR: Failed building wheel for fdasrsf ailed to build fdasrsf ERROR: Could not build wheels for fdasrsf, which is required to install pyproject.toml-based projects Note: you may need to restart the kernel to use updated packages.