Build sublime system for PYENV - Errno13 - permission denied

Hi everyone,

After having anaconda and a dufferent Python 3 version installed, I learned the hard way that a better structure for python versions was needed in my system. After a bunch of research I did the following:

1.Removed Anaconda following the anaconda instructions

2.Installed Homebrew and installed Python3 via hombrew

  1. **Installed Pyenv with brew following the instructions from pyenv github

4.Built the following Sublime system:

“cmd”: ["/Users/myuser/.pyenv/shims", “-u”, “$file”],
“file_regex”: “[1]File "(…?)”, line ([0-9]*)",
“selector”: “source.python”

5.My bashprofile path looks like this:

export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval “$(pyenv init -)”
export PYENV_ROOT="$HOME/.pyenv"
command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH"
eval “$(pyenv init -)”
export PYENV_ROOT="$HOME/.pyenv"

6. The issue. When I try to run any code in Sublime I get

[Errno 13] Permission denied: ‘/Users/myuser/.pyenv/shims’
[cmd: [’/Users/myuser/.pyenv/shims’, ‘-u’, ‘/Users/myuser/Desktop/python_work/hello_world.py’]]
[dir: /Users/myuser/Desktop/python_work]
[path: /Users/myuser/.pyenv/shims:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/myuser/Library/Python/3.9/bin]

I’ve tried uninstalling, tweaking the PATH, I can’t make it work and I don’t understand why. Anyone could point me in the right direction?


  1. ↩︎