Get this error when deploying a Pelican blog to Cloudflare pages

Hi,

I’m trying to get my Python Pelican blog working on Cloudflare pages and I get the following error message:

16:19:51.372	Executing user command: pelican content
16:19:51.378	/bin/sh: 1: pelican: not found
16:19:51.380	Failed: Error while executing user command. Exited with error code: 127
16:19:51.388	Failed: build command exited with code: 1
16:19:52.381	Failed: error occurred while running build command

I’m confused because Cloudflare downloads the correct requirements using Poetry but it says that the pelican command can’t be found. The site works perfectly on my home machine.

Can you try poetry run pelican content