PyBaMM import error - Cannot run anything #3928
-
Hello, I am running Python 3.11.8 and installed PyBaMM 24.1 using pip on a Windows system. Earlier I was using Python 3.10 and everything was fine. But I am getting the below error after upgrading Python. When I run ModuleNotFoundError: Optional dependency pybtex.database is not available. See https://docs.pybamm.org/en/latest/source/user_guide/installation/index.html#optional-dependencies for more details. I tried installing pybamm using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
That is weird. You should not get this error on just importing |
Beta Was this translation helpful? Give feedback.
Thank you for the response!
I uninstalled all the Python libraries, purged the pip cache, verified that there was nothing installed, and ran
pip install pybamm [all]
.Now the library is loading without an error. I had been doing the same thing for 3 hours and it was throwing me that error. I have no clue how it's running now!
Anyway, thank you for the help!