-
Notifications
You must be signed in to change notification settings - Fork 167
Fixing venv on macOS after homebrew patches Python
Reuben Hill edited this page Aug 17, 2020
·
1 revision
On macOS using homebrew python, the symlinks in the firedrake venv can be broken when homebrew updates python with a patch version (e.g. 3.7.7 -> 3.7.8).
Should this happen you can fix your venv by
- With the firedrake venv deactivated run
pip3 install --upgrade virtualenv
- Navigate to the firedrake venv root (the firedrake install directory) then run
virtualenv .
to recreate the virtual environment with unbroken symlinks.
Note that this is unlikely to work for minor release changes (e.g. 3.7.x -> 3.8.x).