Accidentally ran `sudo pip install --upgrade sentry`

Hey. I have a problem where I accidentally ran sudo pip install --upgrade sentry and now my permissions got messed up, and now I can’t upgrade it properly. Can anyone tell me how I can fix this? Thank you.