Install OctoPrint - 3D Printer Web UI - on Windows 🌱

What is OctoPrint?

OctoPrint provides a snappy web interface for controlling consumer 3D printers. -https://github.com/OctoPrint/OctoPrint

Installation

  1. Log into the Windows device
  2. Download Python v3.11.x Download
  3. Download Visual Studio Build Tools Download
  4. Run the downloaded VS Build Tools installer
  5. Select Individual components from the top left > Filter the list to C++ x64/x86 build tools > Check the box next to the option for x64/x86 build tools (Latest)
  6. Filter the list to Windows SDK > Check the box next to the option for the latest Windows SDK > Click Install at the bottom right
  7. Once the installation completes close VS Build Tools installer
  8. Run the downloaded Python installer
  9. Select the options to Use Admin privileges and Add python.exe to PATH > Click Customize installation
  10. Check the pip, py launcher and for all users options > Click Next
  11. Check the top five options, set the install location to C:\Program Files\Python > Click Install
  12. Launch PowerShell as Administrator
  13. Run the following commands in PowerShell
    # create octoprint path
    New-Item -Path 'C:\apps\octoprint' -ItemType Directory -Force | Out-Null
    # change directory to the new path
    cd 'C:\apps\octoprint'
    # create and activate the virtual environment
    python -m venv .\octo-venv
    .\octo-venv\Scripts\activate
    # install wheel
    pip install --upgrade pip wheel
    # install octoprint
    pip install octoprint
    # run octoprint
    .\octo-venv\Scripts\octoprint.exe serve
  14. If prompted, allow Python to have network access
  15. Open a web browser and navigate to http://DNSorIP:5000

Run OctoPrint on System Startup

  1. Press CTRL + C to kill the running OctoPrint process
  2. Open a text editor and paste the following

    :: Start OctoPrint server
    cd /D "%~dp0"
    start "octoprint" /b "C:\apps\octoprint\octo-venv\Scripts\octoprint.exe" serve

  3. Save the file as startup.bat in the OctoPrint directory, C:\apps\OctoPrint in this example
  4. Click on the Start Button > Type task > Launch Task Scheduler
  5. Right click the Task Scheduler Library folder in the left pane > Create Basic Task...
  6. Set the name to OctoPrint and optionally set a Description > Click Next
  7. For the Trigger, select When the computer starts > Click Next
  8. For the Action, select Start a program > Click Next
  9. Complete the form fields as follows:

    Program/script: "C:\apps\octoprint\startup.bat"
    Add arguments:
    Start in:

  10. Click Next
  11. Check the Open the Properties dialog checkbox > Click Finish
  12. In the Properties dialog, click the Change User or Group... button
  13. Type System in the Object name field > Click OK
  14. Click OK to create the scheduled task
  15. Right click the OctoPrint task > Run
  16. Refresh the open web browser to verify OctoPrint is now running from the scheduled task
  17. Click Next on the Start screen
  18. Click Next on the Restore Backup screen
  19. Create an account my entering a Username and entering and confirming a password > Click Create Account
  20. Once the account is created, click Next
  21. Choose to Enable or Disable the Connectivity Check > Click Next
  22. Choose to Enable or Disable Anonymous Usage Tracking > Click Next
  23. Choose to Enable or Disable the Plugin Blacklist > Click Next
  24. Click Next on the Webcam Wizard screen
  25. Click Next on the Default Printer Profile screen
  26. Click Next on the Server Commands screen
  27. Acknowledge all the messages on the Finish screen > Click Finish
  28. Welcome to OctoPrint

Source: https://community.octoprint.org/t/setting-up-octoprint-on-windows/383