Hello,
This works for me with Lazarus 2.2 32 bits on windows 11.
1 - Install a complete version of Python (same type that Lazarus ( for me python 3.10 32 bits)) with options
pip and
tcl/tk. Embedded version has no pip script.
2 - To install a pip python package open a terminal console and change the directory to where is python.
3 - For example to install matplotlib pip package :
D:\Logiciels\Python\Python310-32>Scripts\pip install matplotlib
Collecting matplotlib
Downloading matplotlib-3.6.2-cp310-cp310-win32.whl (7.1 MB)
in attachment a python4Lazarus project to plot a figure.
Friendly, J.P