Created
June 19, 2016 10:43
-
-
Save franktoffel/0ba72f3268fee28bcd8c38de985ec5ef to your computer and use it in GitHub Desktop.
How to install Nikola on Windows with Anconda-conda env
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conda create --name nikolaenv python=3 | |
activate nikolaenv | |
conda install pillow lxml | |
pip install Nikola[extras] |
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
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)