Setting up Python with Visual Studio Code for Engineering Analysis

Travis Stephens

11/15/20264 min read

This set of instructions is for getting started with Python. In my experience, I have been able to setup this development environment on my work computer without having to get support from IT or violating any corporate policies. That said, your system, policies and permissions likely vary, so at a minimum I would check your corporate policies and ask your supervisor or IT if there are any issues installing Visual Studio Code and Python in a local user account.

Throughout this guide, both Window’s PowerShell and Linux commands will be listed. Unless you are working in Apple OS, Linux, or WSL2, the Window’s PowerShell commands will likely be most relevant. The Linux commands/setup are included and recommend if you are working on your personal computer or have user permissions to work inside of a virtual Linux environment through WSL2. For setting up WSL2 and installing a virtual Linux environment, see the instructions at the beginning of the article How to Run and Install AI Locally.

Install Python – Windows (Most Likely Work Setup)
  • Download and run the installation file for the “Python Install Manager” from either the official Python website, https://www.python.org/downloads/, or the Microsoft Store.

  • Click to “Install Python” This should install Python in your local user account (in other words, if someone else uses their login to sign in to your machine, they will not have access to the python installation.

  • You may be prompted in the command prompt (cmd) to install the latest version of CPython. Type “Y” and hit enter if prompted. Note that Python sometimes comes included with other engineering software applications so Python may already be installed on your machine.

  • Use the windows search to locate and run “PowerShell”. If you have administrator system rights, you do NOT need to run it as an administrator.

  • At the PowerShell Prompt, type:

python --version

If python installed correctly, you will see “Python 3.XX.X” displayed. If it did not install correctly, you will receive an error.

  • Next check the Python Package Manager (pip) installed correctly by typing:

pip --version

You should see the installed version along with location it is installed in the local user account.

If pip isn’t found, you may have to set the path to it manually. This can be done in PowerShell by executing the following command and then restarting PowerShell:

setx PATH “$env:PATH;C:\Users\YOURUSERNAME\AppData\Local\Python\bin”

Note that YOURUSERNAME is your unique system profile name and the path may be different depending upon your installation.

Install Python – WSL2 Linux Distribution (Skip this section if you did the Windows installation)

Python is likely already included as part of the Linux Distribution. Run the following commands to make sure the latest version of Python for the version of your Linux Distribution is installed along with the Python Package Manager and Python Virtual Environments Package:

sudo apt update

sudo apt install -y python3 python3-pip python3-venv

Check Python is installed:

python3 --version

Check pip is installed:

pip3 --version

Install Visual Studio Code (Windows and WSL2)

Download and run the Visual Studio Code installation from either the official Visual Studio Code Website, https://code.visualstudio.com/, or the Microsoft Store. Note that this process is the same if you are using PowerShell or a Linux Distribution through WSL2.

During the installation, make sure that “add to PATH” is selected.

Once the installation completes, open Visual Studio code and install the “Python” extension by searching “Python” under Extensions. Extensions is the stacked squares icon on the left side of the screen. Note that the “Python” extension installs Pylance, Python Debugger, and Python Environments.

You are now ready to start working in Python. See “Making and Running a Simple Python Script” get started.

Insights

Delivering FAA compliant solutions and taking your team to the next level.

CONTACT

For Services Inquiries

higheraviation@gmail.com

618-713-7890

© 2025 Benny Aero LLC. All rights reserved.