Best way to hang a bicycle from a ceiling pipe
Assuming you have room to hang the bike vertically by the rear wheel, it's pretty easy to assemble what you need from parts at the hardware store. 

Look for a cushioned hanger to put the rear wheel in.

Then Google pipe hangers to find something to attach the hanger above to the pipe.

You could also look for a coated S hook for the bike wheel.