Comments (4)
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.
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.
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.
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)
- Orbital ordering with pyscf HOT 2
- segfault in `driver.get_csf_coefficients` HOT 5
- Error transforming SU2 to SZ mps HOT 2
- Huge walltime for miniscule CPU Time HOT 1
- Custom Hamiltonian with SU(2) symmetry HOT 4
- Changing basis to my MPS/MPO implementation HOT 2
- Wrong energy for large site csf HOT 5
- Extracting observables HOT 4
- Efficient way to run DMRG-FIC-MRCISD? HOT 4
- Is -DLARGE_BOND=ON always needed? HOT 18
- Cannot install python package on Windows or Apple ARM HOT 2
- DDMRG in dmrgscf HOT 2
- Energy floats as MaxM increases HOT 6
- DMRGSCF with pyscf fails on mpirun with certain imports HOT 1
- Segmentation fault with DMRG-SC-NEVPT2 HOT 4
- Question about mkl version HOT 1
- driver.get_csf_coefficients outputs determinant coefficients inconsistent with FCI from pyscf HOT 2
- Segmentation fault when sampling determinants HOT 3
- onepdms for SOC calc HOT 12
- pdm traces HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from block2-preview.