setting up python in visual studio code code example

Example 1: installing python packages in visual studio code

py -m pip install numpy

Example 2: getting started vscode python

py -3 -m venv .venv
.venv\scripts\activate

Example 3: how to run python code in visual studio 2019

# Video explanation here because its too hard explaining it with words

Example 4: visual studio code import library python

"python.linting.pylintArgs": [
    "--init-hook",
    "import sys; sys.path.append('/path/to/Functions')"
]
  
# OR 

sys.path.append("/path/to/parent")

# option 1
from Functions import functions
functions.copy()
functions.delete()

# option2
from Functions.functions import copy, delete
copy()
delete()

Tags:

Misc Example