Open joyphysics opened 3 months ago
use pip install pybinding-dev
on a new virtual environment (you can create a virtual environment using python3 -m venv newvenv
and then use the python
or python.exe
in newvenv/bin/python
or newenv\Scripts\python.exe
)
Please also take in mind that the recent matplotlib version does not work with Pybind11
classes, you have to use matplotlib==3.9.0
(which is set automatically when you use pip install pybinding-dev
).
I only support python 3.9
, 3.10
, 3.11
and 3.12
. This comes with a pre-compiled binary, to get small preformance benefits, you can compile from source (--no-binary
) using the new pybinding-dev
release.
Please let me know if this works. Best Bert
As per your suggestion, I installed pybinding-dev instead of pybinding, which worked well.
However, I actually want to install and use the BerryEasy package, but it appears to have a dependency on pybinding. When I try to install BerryEasy, it fails due to the missing pybinding dependency. Unfortunately, it seems that BerryEasy does not recognize pybinding-dev as a suitable replacement.
Could you please provide guidance on how to proceed with installing and using BerryEasy given that I have pybinding-dev installed? Is there a workaround or a specific way to configure BerryEasy to work with pybinding-dev or install it without pybinding ?
you can first install pybinding with pip install pybinding-dev
, and then install the dependencies for BerryEasy, pip isntall tqdm
, and then you can install BerryEasy without the check for the dependencies, pip install BerryEasy --no-deps
Also, there is support for the wavefunction and Berry phase in pybinding now, see https://bertjorissen.github.io/pybinding/tutorial/wavefunction.html (work in progress)
Thank you. That works perfectly. :)
I had the same issue for a new Anaconda+Spyder install on my M2 Mac. I tried too many things before looking here in the GitHub. Can you please add this suggestion in the main pybinding installation docs.
Just install using 'pip install pybinding-dev'. I don't hear from the original developer anymore, and I also don't have access to the main pypi release. It is what it is I guess 😅.
You can find some small changes in the documentation, but mostly the API updates, on bertjorissen.github.io/pybinding .
If you use the above version, please cite the 'Moldovan 2020' release as written in the docs and also the following paper: https://scipost.org/SciPostPhysCore.7.1.004 . Let me know if you have some issues, I'd be happy to patch it for you. The current release under 'pip install pybinding' is impossible to be installed on modern systems, don't even try. Use the 'pybinding-dev' option.
Unfortunately, academia doesn't care that much about maintaining code. I'm doing this for the last few years as volunteering work, but the whole academic system does not care. I'm now at the end of my own research project. If they are not going to find a solution for the problems with pybinding, it will die in a few years due to broken dependencies.
I am trying to install the package on Windows 11. Even I tried to install it on Ubuntu, I am still getting the same error.
I have -> Python 3.10.11 cmake version 3.30.1 visual studio 2022 17.10.5 and others as well....
Please provide a possible resolution to this issue or provide an alternate way to install the package. Thank you.