if sys.platform == "win32": subprocess.Popen(["start", "cmd", "/k", "python",…
- User
if sys.platform == "win32": subprocess.Popen(["start", "cmd", "/k", "python", "/SCRIPTS/gpu.py"], shell=True) else: subprocess.Popen(["gnome-terminal", "--", "python3", "/SCRIPTS/gpu.py"]) NO ME LO RECONOCE.: python: can't open file 'D:\SCRIPTS\gpu.py': [Errno 2] No such file or directory
D:\CORTADOR\CORTADOR IA BY_EUROBLOKE\SCRIPTS>
- Assistant
The error message you're encountering indicates that Python is unable to find the specified
gpu.pyscript file at the given file path. Here are a few potential reasons and solutions for the issue:-
Check the File Path:
- Ensure that the path to
gpu.pyis correct. Double-check to make sure there are no typos in the path. - If you're on Windows, make sure the path uses double backslashes (\) or a raw string (r"D:\SCRIPTS\gpu.py") to avoid escape sequence issues.
- Ensure that the path to
-
Verify the Script Exists:
-