pip installation of netket successful, but loading fails #1930
-
I have a mac M3 chip running Sonoma. I installed netket using pip, but trying to import netket fails. The following is the output of python -m netket.tools.info
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
looks like you are maybe not using a native version of python for arm processors ? |
Beta Was this translation helpful? Give feedback.
-
My new suggestion would be to install uv and use it for everything. It's a much better tool than anything else at managing python installations
|
Beta Was this translation helpful? Give feedback.
-
It seems like this works, thanks! To be clear (I haven't used uv before), anytime I would like to run a script using netket I just need to call uv run python myscript.py? |
Beta Was this translation helpful? Give feedback.
-
Yes. If you want to add other dependencies just do The advantage is that uv will automatically manage a hidden python environment for you and ensure that you always have the right dependencies installed, as specified in the pyproject.toml file |
Beta Was this translation helpful? Give feedback.
My new suggestion would be to install uv and use it for everything. It's a much better tool than anything else at managing python installations