You can download psychopy-legacy via pip as follows:
pip install git+https://github/psychopy/psychopy-legacy@main