Python Forum

Full Version: Error in VS Code after installing
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I'm starting to learn Python and I have just installed it on my laptop.

Python 3.7.1 -> D:/Python/Python37
VS Code -> D:/Microsoft VS Code

I have also added the Python Microsoft extension within VS Code.

I'm trying to run the simplest function:

print ("Hello World!")

I do not understand why it returns me:

" PS C:\Users\raduf\OneDrive\Desktop\Python> cd 'C:\Users\raduf\OneDrive\Desktop\Python'; ${env:PYTHONIOENCODING}='UTF-8'; ${env:PYTHONUNBUFFERED}='1'; & 'D:/Python/Python37/python.exe' 'c:\Users\raduf.vscode\extensions\ms-python.python-2018.11.0\pythonFiles\experimental\ptvsd_launcher.py' '--default' '--client' '--host' 'localhost' '--port' '52090' 'c:\Users\raduf\OneDrive\Desktop\Python\hello.py' Hello World
"

Why does it have to "cd" first that entire path? I would expect to return me simply the "Hello World!" ...
Any advice is welcome