I was setting up a new Python project with direnv to manage environment variables. Suddenly python wasn’t found, even though it was definitely installed. Here’s what happened and how I fixed it. The problem Link to heading I’d been using direnv happily for months, managing API keys and secrets per project. Then I added a custom PATH in my .envrc and broke everything: # This was the problem export PATH=/some/custom/path Running which python returned nothing. Even python3 was gone. My shell couldn’t find Python at all.
No pages have linked to this URL yet.