Skip to content

Installation

Thane Thomson edited this page Nov 21, 2016 · 3 revisions

There are two primary ways in which you can install Statik.

Installation in a Virtual Environment

This is generally the recommended way of installing Python software, because it allows you to easily install multiple different versions of the same packages, with different (incompatible) versions of Python, all running simultaneously without interfering with each other.

Firstly, install virtualenv on your operating system.

> cd /path/to/your/desired/virtualenv/folder

# Create the virtual environment, but explicitly specify to use Python 3
# (If you want to use Python 2.7+, do: "virtualenv -p python2 ." instead)
> virtualenv -p python3 .

# Activate the virtual environment
> source bin/activate

# Upgrade PIP
> pip install --upgrade pip

# Install Statik
> pip install statik

# Check that it's installed properly
> statik --help

Global Installation

Not really recommended, but definitely the easiest way to get Statik going without having to activate virtual environments. Make sure you've got Python 3 available on your command line, and that PIP is installed, then do the following:

> pip install statik

# On some systems, you may need sudo/root access to install Python packages globally
> sudo pip install statik
Clone this wiki locally