[Python] I want to change the Sublime text 3 python interpreter

Discussão em 'Python' iniciado por Stack, Junho 2, 2025.

  1. Stack

    Stack Membro Participativo

    I use python 3.7 with MacOS Mojave and try to use sublime text, I had problems with the python path but now I know where's the interpreter I need but I don't know how to change the interpreter of sublime text.

    When I try to build code it shows this error:

    SyntaxError: Non-ASCII character '\xc3' in file /Users/julian/Documents/Ficheros_Python/calculadora/tenor.py on line 98, but no encoding declared; see http://python.org/dev/peps/pep-0263/ for details
    [Finished in 0.1s with exit code 1]
    [shell_cmd: python -u "/Users/julian/Documents/Ficheros_Python/calculadora/tenor.py"]
    [dir: /Users/julian/Documents/Ficheros_Python/calculadora]
    [path: /Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/Library/Frameworks/Python.framework/Versions/3.7/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/usr/local/share/dotnet:/opt/X11/bin:~/.dotnet/tools:/Library/Frameworks/Mono.framework/Versions/Current/Commands:/Applications/Xamarin Workbooks.app/Contents/SharedSupport/path-bin]


    I know that the interpreter I need is in /usr/local/bin/python3.7 or that's the location that Pycharm shows, I only need to change the python interpreter in Sublime but I don't know how.

    Continue reading...

Compartilhe esta Página