Choose my own mirror source and pip source

Owing to certain issues, my local machine experiences slow connections to the standard Debian package repository at ‘Index of /debian’ as well as to the pip source. How might I change to alternative, faster sources that I have locally downloaded?