Jun-13-2022, 03:17 PM
I am just trying to run a hello world file through sublime text and it is not recognizing python. I am currently taking an intro to programming class online, and am working from a book. The book wanted me to go to Tools>Build System>New Build System, and type in this code
{
"cmd":["python3.10","-u","$file"],
}
Then create a new folder called python_work and create my save my hello-world.py file in that folder. I have the code written out:
print("Hello Python world!")
But when I go to build it, I get this message:
[WinError 2] The system cannot find the file specified
[cmd: ['python3.10', '-u', 'C:\\Users\\Roberto\\pyhon_work\\hello_world.py']]
[dir: C:\Users\Roberto\pyhon_work]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Users\Roberto\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\Roberto\AppData\Local\Programs\Python\Python310\;C:\Users\Roberto\AppData\Local\Microsoft\WindowsApps;C:\Users\Roberto\.dotnet\tools]
[Finished]
I've tried uninstalling both Sublime Text and Python numerous times. If I open a command prompt and type python, or just open the python application and type out:
print("Hello Python world!")
it works just fine. What am I doing wrong? I'm working with Python3.10.5 by the way.
{
"cmd":["python3.10","-u","$file"],
}
Then create a new folder called python_work and create my save my hello-world.py file in that folder. I have the code written out:
print("Hello Python world!")
But when I go to build it, I get this message:
[WinError 2] The system cannot find the file specified
[cmd: ['python3.10', '-u', 'C:\\Users\\Roberto\\pyhon_work\\hello_world.py']]
[dir: C:\Users\Roberto\pyhon_work]
[path: C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\dotnet\;C:\Users\Roberto\AppData\Local\Programs\Python\Python310\Scripts\;C:\Users\Roberto\AppData\Local\Programs\Python\Python310\;C:\Users\Roberto\AppData\Local\Microsoft\WindowsApps;C:\Users\Roberto\.dotnet\tools]
[Finished]
I've tried uninstalling both Sublime Text and Python numerous times. If I open a command prompt and type python, or just open the python application and type out:
print("Hello Python world!")
it works just fine. What am I doing wrong? I'm working with Python3.10.5 by the way.