Skip to content

Instantly share code, notes, and snippets.

@foofoodog
Last active August 29, 2015 14:22
Show Gist options
  • Select an option

  • Save foofoodog/0b48e7b40402a2d24f0b to your computer and use it in GitHub Desktop.

Select an option

Save foofoodog/0b48e7b40402a2d24f0b to your computer and use it in GitHub Desktop.
Octoprint on windows
Requires Python 2.7 assumed to be at C:\Python27.
Assumes global Python install has pip and virtualenv and maybe other stuff.
Either git clone or unzip the repo files somewhere.
Assuming you are bleeding edge and want to try the dev branch https://github.com/foosel/OctoPrint/archive/devel.zip.
Assuming here that you unzipped it to c:\Temp and now have this directory C:\Temp\OctoPrint-devel\OctoPrint-devel.
Hint: Text after the colon in the commands below can be pasted into the cmd window.
Hint: To paste to the cmd window press [alt]+[space],e,p in the cmd window.
Open a command prompt and change to the directory.
From a command prompt ([win]+r, cmd, [enter]): cd C:\Temp\OctoPrint-devel\OctoPrint-devel
In order to not pollute the global Python installation create a virtual environment and activate it.
Create the environment: c:\Python27\Scripts\virtualenv.exe env
Activate the environment: env\Scripts\activate
The env Python.exe will now be on your path and your command prompt will show the env.
Run the installer: python setup.py install
Run the program: python run
Surf to: http://localhost:5000
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment