Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Python3 installed via pyenv with SublimeRepl #594

Open
dahanbn opened this issue May 26, 2021 · 1 comment
Open

Using Python3 installed via pyenv with SublimeRepl #594

dahanbn opened this issue May 26, 2021 · 1 comment

Comments

@dahanbn
Copy link

dahanbn commented May 26, 2021

Hi,

on my Mac I use Python 3.9.5 and it is installed via pyenv. In terminals and via PATH the python command uses and starts Python 3.9.5. The older Python 2.7 is shadowed and not directly accessible. Nevertheless the SublimeRepl Python still uses Python 2.7. As it seems somehow SublimeRepl launches an hardcoded path to python and did not use the entry where python points to.

➜ ~ which python
/Users/dh/.pyenv/shims/python
➜ ~ python --version
Python 3.9.5

Sublime Text uses Python 3.9.5 for building (running) the python files for both build targets (python & python3).

How can I use the system wide installed Python 3.9.5 for SublimeRepl?

version: ST4, Build4107, SublimeRepl from packagecontrol.io.

@FrCln
Copy link

FrCln commented Dec 8, 2021

You should specify which python to run in SublimeREPL settings. Go to Preferences -> Browse packages, then to SublimeREPL/config/Python and edit file Main.sublime-menu. There you should change "python" to "/Users/dh/.pyenv/shims/python". Note that this is not a python interpreter itself, but a script which runs correct python, specified by your pyenv.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants