Installing VSCode and PyMOL
A beginner-friendly guide to installing Visual Studio Code and PyMOL on Windows and Mac.
Welcome! This guide will walk you through installing two important programs step by step. Don’t worry if you have never installed software like this before — just follow each step carefully and you will be fine.
The two programs we are installing are:
- Visual Studio Code (VSCode) — a text editor for writing code
- PyMOL — a program for viewing 3D protein structures
Part 1: Installing Visual Studio Code (VSCode)
Visual Studio Code is a free program made by Microsoft for writing and editing code. Think of it like Microsoft Word, but for programming.
On Windows
-
Open your web browser (e.g. Chrome, Edge) and go to: https://code.visualstudio.com
-
Click the big blue Download for Windows button. A file ending in
.exewill be downloaded to your computer. -
Open your Downloads folder and double-click the
.exefile you just downloaded. - A setup window will appear. Follow these steps inside the installer:
- Click “I accept the agreement”, then click Next
- Keep clicking Next on the following screens (the default settings are fine)
- On the screen that says “Select Additional Tasks”, tick the box that says “Add to PATH” — this is important
- Click Install
- Click Finish when it is done
- VSCode should now open automatically. If it does not, search for “Visual Studio Code” in the Start Menu.
On Mac
-
Open your web browser and go to: https://code.visualstudio.com
-
Click the Download for Mac button. A file ending in
.zipwill be downloaded. -
Open your Downloads folder. Double-click the
.zipfile — it will turn into an application file called Visual Studio Code. -
Important: Drag the Visual Studio Code application into your Applications folder. Do not run it directly from the Downloads folder, or it may not work properly.
-
Open your Applications folder and double-click Visual Studio Code to launch it.
-
If a message appears saying “Visual Studio Code cannot be opened because it is from an unidentified developer”, go to System Settings → Privacy & Security, scroll down, and click Open Anyway.
Checking VSCode Works
Once VSCode is open, you should see a welcome screen. That means the installation was successful! You do not need to do anything else with it for now.
Part 2: Installing PyMOL
PyMOL is a program used by scientists to visualise the 3D shapes of proteins and other molecules. You will use it to explore molecular structures in your project.
We will download PyMOL directly from the official website — no Python installation required, as Python is already included in the installer.
On Windows
-
Open your web browser and go to: https://pymol.org
-
Under the Download PyMOL 3.1 section, click Windows — EXE Installer. A file called something like
PyMOL-3.1.7.2-Windows-x86_64.exewill be downloaded (about 367MB — it may take a few minutes). -
Open your Downloads folder and double-click the
.exefile. -
If a warning window appears saying “Windows protected your PC”, click More info and then Run anyway — this is normal for software downloaded from the internet.
-
Follow the installer steps — the default settings are all fine. Click Next through each screen, then Install, then Finish.
-
Search for PyMOL in the Start Menu to launch it. A window with a 3D viewer should open.
On Mac
-
Open your web browser and go to: https://pymol.org
-
Under the Download PyMOL 3.1 section, click macOS — DMG Disk Image. A file called something like
PyMOL-3.1.7.2_0-MacOS-x86-64-py310.dmgwill be downloaded (about 167MB). -
Open your Downloads folder and double-click the
.dmgfile. A window will appear showing the PyMOL icon and an Applications folder shortcut. -
Drag the PyMOL icon into the Applications folder shown in that window.
-
Open your Applications folder and double-click PyMOL to launch it.
-
If a message appears saying “PyMOL cannot be opened because it is from an unidentified developer”, go to System Settings → Privacy & Security, scroll down, and click Open Anyway.
Checking PyMOL Works
When PyMOL opens, you will see two windows: a viewer window (black, where molecules are displayed) and a control panel. That means the installation was successful!
Troubleshooting
| Problem | What to try |
|---|---|
| “I can’t find the downloaded file” | Open your Downloads folder — it should be there |
| “The download is taking very long” | The file is ~170–370MB, so it may take several minutes on a slow connection — just wait |
| “Windows says the file is unsafe” | Click More info → Run anyway — this warning appears for all downloaded software |
| “My Mac says the app is from an unidentified developer” | Go to System Settings → Privacy & Security → Open Anyway |
| “PyMOL opens but shows an error” | Take a screenshot and send it to your mentor |
If you get stuck at any step, do not worry — just take a screenshot of what you see and send it to your mentor at chensimichelle@gmail.com.