Dec-06-2018, 09:18 PM
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
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