Skip to content

Instantly share code, notes, and snippets.

@aaronsteers
Last active October 11, 2022 06:30
Show Gist options
  • Save aaronsteers/360e7789a6a5b8d21a26b909ebd76374 to your computer and use it in GitHub Desktop.
Save aaronsteers/360e7789a6a5b8d21a26b909ebd76374 to your computer and use it in GitHub Desktop.
OctoPrint on Windows
# First install Python 3.9. This can be installed from Windows Store or using winget.
# Make sure key libraries/tools are updated
pip install --upgrade wheel
pip install --upgrade setuptools
pip install --upgrade pip
# Install the C++ Build Tools v14 or greater:
winget install Microsoft.VisualStudio.2022.BuildTools
# After installing, rerun the "Visual Studio Installer", then select 'Modify',
# then check the box for C++ Dev Tools, then confirm the additional installation.
# Install pipx
python -m pip install -U pipx
python -m pipx ensurepath
# Close and re-open your terminal. Then continue...
pipx install octoprint
# Try executing octoprint and allow network connections if Windows Firewall asks for permissions
octoprint2 serve --port=5000
# Navigte to the web interface and complete the setup wizard in your browser
https://localhost:5000
# If you want to control two printers (second one installed as `octoprint2`):
pipx install octoprint --suffix=2
mkdir c:\OctoPrint2
octoprint2 serve --basedir=c:\OctoPrint2 --port=5001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment