Setting up Python Environment
Setting Up Python Environment with Visual Studio Code
1. Install Python
Alternative 1: Install from Microsoft Store
- If you are running Windows, the easiest way to install Python may be through the Microsoft store.
- Find the latest version of Python
- EITHER open the Microsoft Store app on your PC and search for python
- OR follow this link to search for python on https://apps.microsoft.com
- Click install
Alternative 2: Download from python.org
- Download the latest version of Python from the official website and run the installer.
- If you see a checkbox that says "Add Python x.x to PATH", check it to allow Python to be recognized from the command line.
2. Visual Studio Code
2.1 Install VS Code
Alternative 1: Install from Microsoft Store
- Search for vscode in the MS Store app, or follow this link.
- Find and install Visual studio code
Alternative 2: Download from visualstudio.com
- Download and install Visual Studio Code from the official website.
2.2 Install Python Extension for VS Code
- Open Visual Studio Code.
- Go to the Extensions view by clicking on the square icon on the left sidebar or by pressing
Ctrl+Shift+X
. - Search for "Python" in the Extensions Marketplace.
- Install the Python extension provided by Microsoft.
3. Git
3.1 Install Git:
- Download and install Git from the official website.
3.2 Link GitHub Account in VS Code:
- In VS Code, open the Source Control view by clicking on the third icon in the sidebar or by pressing
Ctrl+Shift+G
. - Click on the "Sign in to GitHub" button and follow the prompts to sign in and authenticate your GitHub account.