Python Forum
Error in VS Code after installing - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Error in VS Code after installing (/thread-14569.html)



Error in VS Code after installing - raduf - Dec-06-2018

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


RE: Error in VS Code after installing - buran - Dec-06-2018

cross-posted from SO
https://stackoverflow.com/questions/53659133/vs-code-and-python-problem-after-installation-path


RE: Error in VS Code after installing - snippsat - Dec-06-2018

Look at VS Code from start.