Module 'pymc' has no attribute 'CustomDist

That’s really odd. Can you show the full output of this exact script?

import pymc
print(pymc.__version__)
print(pymc.CustomDist)