Python Forum
Sublime Text 3 WinError 2 File Specified
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Sublime Text 3 WinError 2 File Specified
#1
Hello, newbie to coding here. I am trying to run print("hello Python world!") on Sublime Text 3, but an error msg keeps popping up, as shown below:

[WinError 2] The system cannot find the file specified
[cmd: ['python3', '-u', 'C:\\python_work\\hello_world.py']]
[dir: C:\python_work]
[path: C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Intel\Intel® Management Engine Components\DAL;C:\Program Files\Intel\Intel® Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel® Management Engine Components\IPT;C:\Program Files\Intel\Intel® Management Engine Components\IPT;C:\WINDOWS\System32\OpenSSH\;C:\Users\T-Gun2\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\T-Gun2\AppData\Local\Programs\Python\Python37\;C:\Users\T-Gun2\AppData\Local\Programs\Python\Launcher\;C:\Users\T-Gun2\AppData\Local\Microsoft\WindowsApps;]
[Finished]

The Python version I installed is 3.7.7. On Sublime Text 3, I have created a New Build System for Python3, ie. Tools --> Build System --> New Build System, with the entry below:
{
"cmd": ["python3", "-u", "$file"],
}

Could anyone help me resolve this problem? Much appreciated. Thank you!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  FileNotFoundError: [WinError 2] The system cannot find the file specified NewBiee 2 1,489 Jul-31-2023, 11:42 AM
Last Post: deanhystad
  while loop not working-I am using sublime text editor mma_python 4 1,060 Feb-05-2023, 06:26 PM
Last Post: deanhystad
Thumbs Up Need to compare the Excel file name with a directory text file. veeran1991 1 1,061 Dec-15-2022, 04:32 PM
Last Post: Larz60+
  Sublime Text Editor not recognizing Python elroberto 5 2,802 Jun-13-2022, 04:00 PM
Last Post: rob101
  Modify values in XML file by data from text file (without parsing) Paqqno 2 1,574 Apr-13-2022, 06:02 AM
Last Post: Paqqno
  Converted Pipe Delimited text file to CSV file atomxkai 4 6,840 Feb-11-2022, 12:38 AM
Last Post: atomxkai
  WinError 2, since fresh new Windows 10 install alok 1 1,610 Jan-06-2022, 11:20 PM
Last Post: lucasbazan
  Code folding in Sublime Text Mondata 2 2,758 Mar-12-2021, 04:16 PM
Last Post: Mondata
  How to link Sublime Text 3 Build system to Python 3.9 Using Windows 10 Fanman001 2 4,531 Mar-04-2021, 03:09 PM
Last Post: martpogs
  Sublime Text TechNitium 4 2,711 Jan-23-2021, 08:41 AM
Last Post: TechNitium

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020