scikit-tda/ripser.py

Failed building wheel for Ripser on Win11

tianboqi opened this issue · 3 comments

I am trying to install Ripser on my Win11 in Anaconda, and it says ERROR: Failed building wheel for Ripser. The complete output is as follows. Could someone help me with this? Thanks a lot!

(base) C:\Users\T QI>pip install Ripser
WARNING: Ignoring invalid distribution -ryptography (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -rllib3 (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ix (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -dna (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ryptography (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -rllib3 (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ix (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -dna (c:\programdata\anaconda3\lib\site-packages)
Collecting Ripser
  Using cached ripser-0.6.4.tar.gz (74 kB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: scikit-learn in c:\programdata\anaconda3\lib\site-packages (from Ripser) (0.22.1)
Collecting persim
  Using cached persim-0.3.1-py3-none-any.whl (47 kB)
Requirement already satisfied: Cython in c:\programdata\anaconda3\lib\site-packages (from Ripser) (0.29.14)
Requirement already satisfied: numpy in c:\programdata\anaconda3\lib\site-packages (from Ripser) (1.18.1)
Requirement already satisfied: scipy in c:\programdata\anaconda3\lib\site-packages (from Ripser) (1.3.1)
Requirement already satisfied: joblib in c:\programdata\anaconda3\lib\site-packages (from persim->Ripser) (0.14.1)
Requirement already satisfied: matplotlib in c:\programdata\anaconda3\lib\site-packages (from persim->Ripser) (3.1.3)
Collecting deprecated
  Using cached Deprecated-1.2.13-py2.py3-none-any.whl (9.6 kB)
Collecting hopcroftkarp
  Using cached hopcroftkarp-1.2.5-py2.py3-none-any.whl
Requirement already satisfied: wrapt<2,>=1.10 in c:\programdata\anaconda3\lib\site-packages (from deprecated->persim->Ripser) (1.11.2)
Requirement already satisfied: kiwisolver>=1.0.1 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->persim->Ripser) (1.1.0)
Requirement already satisfied: python-dateutil>=2.1 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->persim->Ripser) (2.8.1)
Requirement already satisfied: cycler>=0.10 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->persim->Ripser) (0.10.0)
Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in c:\programdata\anaconda3\lib\site-packages (from matplotlib->persim->Ripser) (2.4.6)
Requirement already satisfied: six in c:\programdata\anaconda3\lib\site-packages (from cycler>=0.10->matplotlib->persim->Ripser) (1.15.0)
Requirement already satisfied: setuptools in c:\programdata\anaconda3\lib\site-packages (from kiwisolver>=1.0.1->matplotlib->persim->Ripser) (45.1.0.post20200119)
Building wheels for collected packages: Ripser
  Building wheel for Ripser (pyproject.toml) ... error
  error: subprocess-exited-with-error

  × Building wheel for Ripser (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [12 lines of output]
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib.win-amd64-cpython-37
      creating build\lib.win-amd64-cpython-37\ripser
      copying ripser\ripser.py -> build\lib.win-amd64-cpython-37\ripser
      copying ripser\_version.py -> build\lib.win-amd64-cpython-37\ripser
      copying ripser\__init__.py -> build\lib.win-amd64-cpython-37\ripser
      running build_ext
      building 'pyRipser' extension
      error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for Ripser
Failed to build Ripser
ERROR: Could not build wheels for Ripser, which is required to install pyproject.toml-based projects
WARNING: Ignoring invalid distribution -ryptography (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -rllib3 (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ix (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -dna (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ryptography (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -rllib3 (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ix (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -dna (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ryptography (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -rllib3 (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -ix (c:\programdata\anaconda3\lib\site-packages)
WARNING: Ignoring invalid distribution -dna (c:\programdata\anaconda3\lib\site-packages)

(base) C:\Users\T QI>

I managed to install in conda via conda install -c conda-forge ripser.

Hi, thanks for the reply. I'm using python 3.7.6.

Ah okay, glad it works in conda. Still, I'd like to fix this. I suspect you're using a newer version of python. What version are you using?

On Sun, Jan 15, 2023, 2:15 AM tianboqi @.> wrote: Closed #148 <#148> as completed. — Reply to this email directly, view it on GitHub <#148 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJWDZRC4V2QDWMQGVGWTNLWSOPXDANCNFSM6AAAAAAT3VQH3I . You are receiving this because you are subscribed to this thread.Message ID: @.>