Dispense from means to exempt or release from something, so its antonyms would be words that have the opposite meaning, such as require, demand, obligate, or compel. When someone is not dispensed from something, they must comply with it or follow its rules. For instance, a student might be dispensed from taking a certain class if they have already taken it elsewhere, and the opposite of that would be that they are required to take the class. Another example could be a worker who is dispensed from wearing a uniform, versus one who is obligated to wear it as part of their job requirements.