One option is to try running python -m pretext --help. If that works, then you can use python -m pretext in place of pretext, and you won't need to do anything further.
python -m pretext --help
python -m pretext
pretext