Pelican command not found on Cloudflare pages

I want to deploy the pelican website with Cloudflare pages, We have setup it according to to guidelines given here: https://developers.cloudflare.com/pages/framework-guides/deploy-a-pelican-site/

When it is deploying, It is giving below error
|17:47:06.496|Executing user command: pelican content -s |
|---|---|
|17:47:06.500|/opt/build/bin/build: line 39: pelican: command not found|
|17:47:06.505|Failed: build command exited with code: 127|
|17:47:07.590|Failed: an internal error occurred|

Any help will be really appreciated,

Did you follow the first 2 steps:

python3 -m pip install pelican
pip freeze > requirements.txt

@Walshy That help. thanks. After applying the suggested changes.

I am having the below error:

10:37:34.269	ERROR: Could not find a version that satisfies the requirement apt-clone==0.2.1 (from -r requirements.txt (line 1)) (from versions: none)
10:37:34.269	ERROR: No matching distribution found for apt-clone==0.2.1 (from -r requirements.txt (line 1))
10:37:34.430	WARNING: You are using pip version 20.2b1; however, version 22.3.1 is available.
10:37:34.430	You should consider upgrading via the '/opt/buildhome/python3.7/bin/python3.7 -m pip install --upgrade pip' command.
10:37:34.462	Error installing pip dependencies
10:37:34.466	Failed: build command exited with code: 1
10:37:35.259	Failed: an internal error occurred