Sublime problem to run python code

Asked

Viewed 2,843 times

5

In giving CRTL+B in sublime 2, to run my code in python, appears this error message, someone knows what is?

Decode error - output not utf-8]
[cmd:  [u'python', u'-u', u'C:\\Users\\Rosangela\\Desktop\\Leo\\Estudo\\Exercicios_Python\\teste14.py']]
[dir:  C:\Users\Rosangela\Desktop\Leo\Estudo\Exercicios_Python]
[path: C:\Program Files (x86)\CollabNet;C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\bin;C:\Users\Public\Documents\RAD Studio\9.0\Bpl;C:\Program Files (x86)\Embarcadero\RAD Studio\9.0\bin64;C:\Users\Public\Documents\RAD Studio\9.0\Bpl\Win64;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files\Broadcom\Broadcom 802.11\Driver;C:\Program Files\WIDCOMM\Bluetooth Software\;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files\Internet Explorer;c:\Program Files (x86)\Microsoft SQL Server\90\Tools\binn\;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\Tools\Binn\;c:\Program Files\Microsoft SQL Server\100\DTS\Binn\;C:\Program Files (x86)\Delphi7SE\bin;C:\Program Files (x86)\Delphi7SE\Projects\BPL]
[Finished]

1 answer

4


Python path is not in your PATH (environment variables).

See the screen below to configure:

Variáveis de Ambiente

  • Hello, thanks worked, but when I went to execute my code gave the following error. Enter the weight value(KG): Traceback (Most recent call last): File "C: Users Rosangela Desktop Leo Study Exercicios_python exercicio2_questao03.py", line 1, in <module> weight = float(input('Enter the weight value(KG): ')) Eoferror: EOF when Reading a line [Finished in 0.2s]

  • @Leonardovillela This is the scope of another question. If you want to ask, feel free.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.