You have inflammation or infection of the eyelid. It is called Hordeolum. You will need ceertain anti inflammatory medications along with antibiotics. Hot water fomentation will help. Kindly visit an ophthalmologist for the medications. Dont apply pimple creams, the may damage your eyes.
1 Doctor agrees with this answer