skip to Main Content

I am using window 10 and I cannot find a way to automatically initialize python for my terminal. The terminal will show unable to initialize device PRN. I have to manually type in python, then the terninal works normal. But how can I initialize python automatically.

my_screenshot

What I have done is that I have add the python.exe to env variable in my PC, but it does not help me to execute python when I start my venv in vs code.

enter image description here

2

Answers


  1. add the Python path in the environment variables.

    Login or Signup to reply.
  2. You may be using Shift+Enter or right mouse button Run Python --> Run Selection/Line in Python Terminal to execute a selected part of the code.

    enter image description here

    This is an error brought by the Python extension update, currently you can get the fix by downgrading the python extension.

    Similar SO question:

    Github link:

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search