GithubHelp home page GithubHelp logo

Comments (4)

hczhai avatar hczhai commented on August 18, 2024

Thanks for reporting the issue.

In the pip installation process, it will first check your operating system and python version, etc. If your operating system and python version meet some conditions, it will download the corresponding precompiled binaries and the whole pip install command will finish in a few seconds. However, if your system environment does not meet the conditions, the only choice is downloading the source and compile it from source. This is what "Building wheel for block2 (setup.py) ..." is doing. Normally you may need at least 10 GB memory and 30 min to 2 hours to compile it if you only have a few CPU cores. Sometimes the compilation process can even fail, if the compiler in your system is too old (or too new), etc.

I would appreciate if someone could take a look at the pip installation binary.

When "Building wheel for block2 (setup.py) ..." appears, it means that pip is not using any binaries.

I also tried the pip install block2 --no-binary block2.

For your case, since no suitable binaries can be used, pip install block2 --no-binary block2 has exactly the same effect as pip install block2.

I'm aware of the alternative manual installation way and trying that now.

If you try manual installation (building from source), it will also take hours (but maybe shorter because you can disable some unnecessary options).

Ideally we do not want the user to spend too long on compiling the code. Could you let me know what is your operating system? If it is MacOS, is it with Intel CPU or Apple CPU? If possible we can provide binaries for a large variety of different cases so that pip can always find the suitable binaries and the long compiling process can be skipped.

from block2-preview.

sherrylixuecheng avatar sherrylixuecheng commented on August 18, 2024

Thank you so much for your quick reply! It makes sense now. My operating system is MacOS with Intel CPU. Also, thx for providing the estimated compilation time!

from block2-preview.

hczhai avatar hczhai commented on August 18, 2024

Thanks for providing the operating system information. I guess maybe you are using MacOS version 10? If this is true:

The current block2 (version 0.5.0) binary supports MacOS 11 (Big Sur) and MacOS 12 (Monterey), but not MacOS 10. Of course you can always compile from source and your manually compiled binary can still run in that old MacOS.

Alternatively, you can try an older version of block2 pip install block2==0.4.8 and this can support MacOS 10.15 and no compiling is needed.

from block2-preview.

sherrylixuecheng avatar sherrylixuecheng commented on August 18, 2024

My laptop's operating system is MacOS 12.4, and it is wired that block2 cannot directly be installed. No worries~ I have successfully installed using pip install block2==0.4.8 Thank you so much! Let me close this issue :D

from block2-preview.

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.