Skip to content

Instantly share code, notes, and snippets.

View jgentil's full-sized avatar
🧙‍♂️
jpg

Jon-Pierre Gentil jgentil

🧙‍♂️
jpg
  • Eden Prairie, MN
View GitHub Profile
@pv8
pv8 / fix-venv.sh
Last active September 1, 2022 03:33
Fix virtualenv symlinks after upgrading python with Homebrew and running brew cleanup
#!/usr/bin/env bash
#
# Fix virtualenv symlinks after upgrading python with Homebrew and then running
# `cleanup`.
#
# After upgrading Python using Homebrew and then running `brew cleanup` one can
# get this message while trying to run python:
# dyld: Library not loaded: @executable_path/../.Python
# Referenced from: /Users/pablo/.venv/my-app/bin/python
# Reason: image not found