pip install upgrade scipy code example Example: python upgrade pip scipy sudo pip install --upgrade scipy