Automated Installation#

Video Guide — description found below

Install everything at once#

Installs all packages and tools required for the 1st year Polytechnical Foundation courses at DTU.

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

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

    ../../_images/windows-ps-run-admin.png
  3. Copy the following line of code into the PowerShell window and press Enter.

    Note: please copy the entire line.

    irm "https://raw.githubusercontent.com/dtudk/pythonsupport-scripts/main/Core/Orchestration/install_all_windows.ps1" | iex
    

    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.

    When the script starts, your terminal should look something like this:

    ../../_images/windows-startingscript.png
  4. The script has finished when your terminal looks like this:

    ../../_images/windows-finishingscript.png

    Now, Python and Visual Studio Code will be ready to use.

    Note

    During the installation, you will see warnings and caveats, etc. The script will resolve these automatically. Please let the script finish.

How to turn AI on/off in VS Code#

  1. Open Visual Studio Code.

  2. Press Ctrl+, on Windows, or Command+, on MacOS, to open the settings in Visual Studio Code.

  3. Search for “Disable AI Features” and check or uncheck the box

    ../../_images/vscode_ai_checkbox.png

    If AI is enabled, you should have a Copilot icon () in the bottom right corner with an option to sign in.

    ../../_images/vscode_ai_signin.png

Tip

When you have finished the guide, we strongly recommend checking out learn more to prepare you for coding.

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 Miniforge Prompt. Verify that (base) is shown to the left of the text. Something like the image below:

    If (base) does not show?

    You may have opened the regular PowerShell terminal which does not enable the Miniforge environment, and hence you will not have access to the installed Python and the packages.

    It is important to search for Miniforge Prompt in the menu bar. If it does not exist, please try and install again, or stop by us.

  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.14.X in the top left (or in the range of 3.10 – 3.15).

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

    import matplotlib, pandas, scipy, sklearn, spb, 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.14 matplotlib jupyter ipykernel pandas scipy scikit-learn 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.