Python and VS Code Setup - mechwarrior82/eve-online-odoo-integration GitHub Wiki
Absolutely! Here are detailed instructions for installing Python and setting up Visual Studio Code (VS Code) on Windows:
Step 1: Install Python
-
Download Python: Go to the official Python website and download the latest version of Python for Windows.
-
Run the Installer: Open the downloaded installer and follow the prompts:
- Make sure to check the box that says "Add Python to PATH".
- You can choose the default installation location or customize it if you prefer.
- Click Install Now to complete the installation.
-
Verify Installation: Open Command Prompt and type
python --version
to check if Python is installed correctly. You should see the version number of Python displayed.
Step 2: Install Visual Studio Code
-
Download VS Code: Go to the official VS Code website and download the installer for Windows.
-
Run the Installer: Open the downloaded installer and follow the prompts:
- Accept the license agreement and click Next.
- Choose the installation location or use the default.
- Click Install to complete the installation.
-
Launch VS Code: Once the installation is complete, you can launch VS Code from the Start menu or by typing
code
in Command Prompt.
Step 3: Set Up VS Code for Python Development
- Install Python Extension: Open VS Code and go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window or pressing
Ctrl+Shift+X
. - Search for Python: In the Extensions view, search for "Python" and install the extension provided by Microsoft.
- Configure Python Interpreter: After installing the Python extension, you can set up the Python interpreter:
- Open the Command Palette by pressing
Ctrl+Shift+P
. - Type "Python: Select Interpreter" and press Enter.
- Choose the Python interpreter you installed earlier from the list.
- Open the Command Palette by pressing
Step 4: Create a Python Project
- Open a Folder: Open VS Code and select "Open Folder" from the File menu or press
Ctrl+K Ctrl+O
. - Create a New File: In the Explorer view, right-click on the folder and select "New File". Name the file (e.g.,
hello.py
). - Write Python Code: Open the new file and start writing your Python code.
Summary
- Install Python: Download and install Python, ensuring it's added to PATH.
- Install VS Code: Download and install Visual Studio Code.
- Set Up Python in VS Code: Install the Python extension and configure the Python interpreter.
- Create a Python Project: Open a folder in VS Code and start coding.
If you have any questions or run into any issues, feel free to ask! 😊 Happy coding!