Install Pelican, the Python Static Site Generator on Linux(Ubuntu)

Here are the steps for installing Pelican the Python based static site generator on Linux.

First make sure Python and pip is available on your system

$python3 --version
Python 3.12.3
$pip3 --version
pip 24.0 from /usr/lib/python3/dist-packages/pip (python 3.12)

Now create a Python virtual environment. Here my-blog-env is the virtual environment name.

python3 -m venv my-blog-env

Now enable the virtual environment using

source ./my-blog-env/bin/activate

Now you can see the virtual environment is activated by seeing the virtual environment name before you username.

(my-blog-env) home@home-desk:~$ 

Now Pelican can be installed in this virtual environment, this installs Pelican with markdown support.

python -m pip install "pelican[markdown]"

Now run pelican --help to confirm the installation and see the available options.

links

social