Announcements
import os print(os.getcwd())
Traceback (most recent call last): File "<string>", line 1, in ImportError: No module named os
Did you installed python, if done check whether required module installed or not pip install os in cmd you can install .
if works marks as solution it will helps for others
Regards,
Riyaz
yes ,i have installed python in my windows11.and it can run the same python scripts in VSCODE or in cmd. the module named os is a default module. No additional installation required。
Did you tried to run cmd promt
have done it by setting up two variables
first is a python path - where exe is located
second is where python script is located
then run powershell script:
%PythonPath% %pythonscript%
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our 2026 Super Users!
Congratulations to our 2025 community superstars!
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Vish WR 997
Valantis 810
Haque 642