Installing pywikibot
I recommend you use conda and create a conda env.
On sharc/iceberg
module load apps/python/conda
. activate my_conda_env
download pywikibot (via tar or git) somewhere
git clone blah blah blah
cd pywikibot
python3 setup.py install --user
then carry on with pywikibot instructions for creating user-config.py