Giter Site home page Giter Site logo

Comments (7)

sauln avatar sauln commented on August 23, 2024

There were no errors when you installed it from the wheel? It looks like you've installed it using the VS compiler instead of minGW. Do you have minGW set up?

from ripser.py.

catanzaromj avatar catanzaromj commented on August 23, 2024

No errors from wheel... And I had minGW installed when pip install ripser bombed.

from ripser.py.

sauln avatar sauln commented on August 23, 2024

Could you try following these steps for the install. They work on Appveyor with conda:

ripser.py/appveyor.yml

Lines 26 to 39 in 6ae34fc

install:
- "set PATH=%MINICONDA%;%MINICONDA%\\Scripts;%PATH%"
- python --version
- python -c "import sys,platform,struct;print(sys.platform, platform.machine(), struct.calcsize('P') * 8, )"
- conda config --set always_yes yes --set changeps1 no
- conda update -q conda
- conda info -a
- "conda create -q -n test-environment
python=%PYTHON_VERSION% numpy pandas scipy matplotlib pytest"
- activate test-environment
- conda install libpython m2w64-toolchain cython
- echo [build] > %CONDA_PREFIX%\Lib\distutils\distutils.cfg
- echo compiler = mingw32 >> %CONDA_PREFIX%\Lib\distutils\distutils.cfg
- python setup.py install

Some of the steps might not be necessary, but I think the lines

  - conda update -q conda 
  - conda install libpython m2w64-toolchain cython
  - echo [build] > %CONDA_PREFIX%\Lib\distutils\distutils.cfg
  - echo compiler = mingw32 >> %CONDA_PREFIX%\Lib\distutils\distutils.cfg

will be necessary before installation. The %CONDA_PREFIX% should be changed to where ever your conda is installed.

from ripser.py.

catanzaromj avatar catanzaromj commented on August 23, 2024

So that totally worked! Could you shed some light on why that succeeded but pip install ripser or the wheel file didn't?

from ripser.py.

sauln avatar sauln commented on August 23, 2024

That's great! I'm glad it worked. I'm still trying to figure out how conda+windows+mingw play together, but I think what's happening here is you are explicitly telling conda to use mingw compiler.

For sake of reproducability, could you share the exact commands you made to get the install to work? This process needs much better documentation.

from ripser.py.

catanzaromj avatar catanzaromj commented on August 23, 2024

After working on the install on my own and a couple other windows machines, I think the issue is exactly as you say--forcing conda to use mingw to compile as opposed to whatever the default setting is. The errors I came across installing ripser before this particular one I asked about were related to general C++/Cython dependent issues, like pip installing steem, misaka, or related to missing/invalid cl.exe.

In terms of reproducibility, I did exactly the steps you mentioned above in the larger scroll box, not just the four lines you highlighted, except the first--I didn't modify the path. The same commands also worked in my standard environment, so I didn't have to create a new test-environment.

from ripser.py.

sauln avatar sauln commented on August 23, 2024

Perfect! Thank you.

from ripser.py.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.