I am new to Python and this forum (but not general programming) and looking for help in understanding how Python Interpreter interacts with PATH and PYTHONPATH environment variables in Windows 11 64bit environment.
I have successfuly installed python 3.11 in Windows 11 and created a a simple "hello_world.py" script file in a sub-folder under the main python installtion folder.
The script file runs correctly within IDLE and the CMD prompt as hello_world.py but am getting execution failures under other execution modes caused by durectory/file errors. See attached file for details.
The problem is my lack of a clear understanding of how python interacts with the Windows envionment (especially path variables) and searching other online sources and documentation has not resolved the problem.
Any guidance or pointers to definitive resources rekated to python and the Windows environment gratefully received.
Apologies for any forum rules I have inadvertently breached
Thank you - Jerry
Script File Failure & Python Path Error.docx (Size: 13.45 KB / Downloads: 248)
I have successfuly installed python 3.11 in Windows 11 and created a a simple "hello_world.py" script file in a sub-folder under the main python installtion folder.
The script file runs correctly within IDLE and the CMD prompt as hello_world.py but am getting execution failures under other execution modes caused by durectory/file errors. See attached file for details.
The problem is my lack of a clear understanding of how python interacts with the Windows envionment (especially path variables) and searching other online sources and documentation has not resolved the problem.
Any guidance or pointers to definitive resources rekated to python and the Windows environment gratefully received.
Apologies for any forum rules I have inadvertently breached
Thank you - Jerry
