Python Forum
Error in VS Code after installing
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error in VS Code after installing
#1
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
Reply
#2
cross-posted from SO
https://stackoverflow.com/questions/5365...ation-path
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#3
Look at VS Code from start.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  ERROR WHILE INSTALLING PLAYSOUND MODULE satwants33 2 1,249 Mar-23-2024, 12:50 PM
Last Post: Ritik2508
  error while installing any library using pip in windows AkashKansal 1 4,394 Sep-24-2020, 07:51 AM
Last Post: buran
  Pip prints huge error when installing p5 hayden2s 1 2,248 Aug-08-2020, 02:30 PM
Last Post: snippsat
  Installing Error - Python 2.7.8 saranana 2 2,549 Jun-04-2020, 02:25 AM
Last Post: pyzyx3qwerty
  Getting error while installing packages using pip Shreya 2 4,046 Apr-22-2020, 08:03 AM
Last Post: Shreya
  Error Installing PySceneDetect and OpenCV jpnoli 1 1,901 Mar-26-2020, 12:19 PM
Last Post: buran
  Error after installing Python3.8.2: "No module named 'apt_pkg'" Chromie 3 3,867 Mar-09-2020, 08:20 PM
Last Post: micseydel
  error in installing Pystan sveto4ka 6 8,079 Oct-06-2019, 06:25 PM
Last Post: sveto4ka
  Error when installing module tjnichols 2 5,323 May-13-2018, 04:51 PM
Last Post: tjnichols
  Fix Memory Error while installing a library for Qgis alexastorga 0 2,576 Apr-13-2018, 04:54 PM
Last Post: alexastorga

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020