Replies: 1 comment 2 replies
-
Hi there, the current version of PyBaMM supports all Python versions from 3.8 to 3.11 on all platforms, so installing with Python 3.10 should work out of the box. To get the unit tests that fail due to LaTeX-related errors to pass, it is recommended to install the When you create a virtual environment, it is isolated from the global Python installation and therefore does not come with any dependencies inside it, so |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello! I had some trouble installing PyBaMM from source with the developer options following these instructions, so I thought I'd share the solutions I found along the way :)
Windows Subsytem for Linux (WSL)
I initially wanted to install in Windows, but it was too hard to follow, so I then reverted to WSL. The first hurdle was that the most common option, Ubuntu, ships with Python 3.10 as default, whereas PyBaMM supports 3.7-3.9. I realised this a while later, and installed 3.9 and selected it as my default. However it still caused too many issues (in particular getting
distutils
to work), so I gave up on that. PS - never uninstall the default version of Python in Ubuntu 😂Next step was to use Debian instead of Ubuntu. This allowed me to get a clean Python 3.9 install, but was significantly harder to do so. I have lost much of the troubleshooting I did around this, but it mostly involved getting Debian to recognise the version of Python installed!
Install Instructions
The instructions specify to install the following set of pre-requisites:
But I found I also needed the following in order to pass the unit tests:
graphiz
was the hardest to find as it produced a generic error in the unit test, but I ended up finding it here.Finally, after creating and activating the virtual environment with Tox, I found that I then had to install Tox for a 2nd time to run the tests:
And I think that about fixed it!
Top recommendation is just to use a Mac lol.
Beta Was this translation helpful? Give feedback.
All reactions