# Bad interpreter: No such file or directory

**URL:** https://discourse.beets.io/t/bad-interpreter-no-such-file-or-directory/312
**Category:** Help
**Created:** [March 14, 2018, 1:35am UTC](https://discourse.beets.io/t/bad-interpreter-no-such-file-or-directory/312 "2018-03-14T01:35:52Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![water](https://avatars.discourse-cdn.com/v4/letter/w/a698b9/32.png) [@water](https://discourse.beets.io/u/water)
#### Post date: [March 14, 2018, 1:35am UTC](https://discourse.beets.io/t/bad-interpreter-no-such-file-or-directory/312/1 "2018-03-14T01:35:52Z")

</div>

I’m on osx 10.11.

So after messing around with a package called ‘pyenv’ to try and manage different versions of python, I somehow broke beets. When trying to import something, I get:

-bash: /usr/local/bin/beet: /usr/local/opt/python/bin/python2.7: bad interpreter: No such file or directory

I’ve uninstalled, reinstalled, unlinked, relinked, overwritten different versions of python. It looks like homebrew doesn’t put python2.7 in /usr/local/opt/python/bin. So i’ve tried making symlinks to it there and that gives me a permission denied. I can’t figure it out.

Anybody know how to fix this? Thanks.
