Skip to content

Instantly share code, notes, and snippets.

@franktoffel
Created June 19, 2016 10:43
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save franktoffel/0ba72f3268fee28bcd8c38de985ec5ef to your computer and use it in GitHub Desktop.
Save franktoffel/0ba72f3268fee28bcd8c38de985ec5ef to your computer and use it in GitHub Desktop.
How to install Nikola on Windows with Anconda-conda env
conda create --name nikolaenv python=3
activate nikolaenv
conda install pillow lxml
pip install Nikola[extras]
@franktoffel
Copy link
Author

franktoffel commented Jun 19, 2016

Nikola extras can be painful to install via pip, specially pillow and lxml. Here we use conda installers which include the binaries ready to use so we avoid any problems. The rest of dependencies (which are a lot!) can be installed directly via pip.

Dependencies for Nikola (earlier 2016):
Installing collected packages: Yapsy, docutils, micawber, ghp-import2, smartypants, typogrify, pathtools, PyYAML, argh, watchdog, Jinja2, pygal, ipython-genutils, decorator, traitlets, jupyter-core, pyzmq, jupyter-client, tornado, backports.shutil-get-terminal-size, pickleshare, simplegeneric, ipython, ipykernel, jsonschema, nbformat, mistune, entrypoints, nbconvert, notebook, pyphen, webassets, ws4py, Markdown, phpserialize, (+Pillow and lxml)

@franktoffel
Copy link
Author

franktoffel commented Jun 19, 2016

Problem following the getting started tutorial of Nikola:

The problem seems to be related with windows firewall in the Step 6. Start the development server.
Using the following command:
nikola serve --browser

This error appears:

Unable to connect

Firefox can't establish a connection to the server at 0.0.0.0:8000.

or

This site can’t be reached

The webpage at http://0.0.0.0:8000/ might be temporarily down or it may have moved permanently to a new web address.

Solution

use this command instead:
nikola serve --browser -a localhost -p 80

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment