— Manual Installation#

Video Guide — description found below

Step 1: Install Miniforge#

  1. Click here to download the installer.

  2. Open the installer, once it has been downloaded.

  3. Once the installer is open you might encounter a security warning. Click on the More info button and then Run anyway.

  4. Follow the instructions from the installer. Make sure to cross off all the options regarding PATH, as shown below.

    ../../_images/Miniconda-install-path.png

Step 2: Install Python#

  1. Open PowerShell as an Administrator by opening the menu bar, then search for PowerShell.

    Once you see the PowerShell on the right-hand side, you can select Run as Administrator. If not, right-click the icon and choose Run as Administrator.

    ../../_images/windows-ps-run-admin.png
  2. Run the following command in the terminal window by copying, pasting and pressing Enter:

    Set-ExecutionPolicy -Force RemoteSigned
    

    Tip

    You can copy and paste code in the code blocks by hovering your mouse over the code block and pressing the icon () appearing in the top right corner.

  3. Run the following commands in the terminal window by copying, pasting and pressing Enter:

    conda init
    
  4. Run the following commands in the terminal window by copying, pasting and pressing Enter:

    conda install python=3.12 dtumathtools pandas scipy statsmodels uncertainties -y
    

Step 3: Install Visual Studio Code#

  1. Go to this website.

  2. Click the Windows button

    ../../_images/windows-fully-manual-vsc-webpage.png
  3. Open the installer and follow the instructions.

Step 4: Install extensions for Visual Studio Code#

  1. Open Visual Studio Code and select the Extensions extensions tab on the left.

  2. Here search for Python, and download the extension. Make sure that it’s from Microsoft.

    ../../_images/macos-package-managed-python.png
  3. Search for Jupyter, and download that extension as well. This also needs to be from Microsoft.

    ../../_images/macos-package-managed-jupyter.png

Verification#

Video Guide — description found below

Verify that your installation is successful by following these steps:

  1. Open PowerShell by opening the menu bar, then search for Windows PowerShell. Verify that (base) is shown to the left of the text. Something like the image below:

  2. Type idle in the PowerShell window, then press Enter. This should open a new window in which you can run Python code.

  3. Verify the IDLE window says Python 3.12.X in the top left (or in the range of 3.10 – 3.12).

  4. Copy the following Python code into the IDLE window, then press Enter:

    import dtumathtools, pandas, scipy, statsmodels, uncertainties
    

    Verify that a new line (>>>) appears without any text (indicating everything got imported correctly). See the below image for an example:

If some steps result in a different than described above, please continue reading the Troubleshooting section.

Troubleshooting#

Only follow these troubleshooting steps if something in the previous section did not check out.

  • Ensure that Miniforge is installed: Search for the PowerShell prompt (it will say Windows PowerShell) on your computer and open it up.

    If you cannot find it, press here to install conda.

  • After opening PowerShell, type conda init and press Enter.

  • Ensure the packages are installed (if they are already installed, this will not do anything).

    Paste the following line of code to the PowerShell window and press Enter:

    conda install python=3.12 dtumathtools pandas scipy statsmodels uncertainties -y
    
  • Go back to the previous Verification section and check them again.

If you are still having trouble or have any questions, please do not hesitate to visit us during office hours or contact us via email or Discord. More information can be found on our homepage.