A deep learning framework is a software library that provides a structure for creating deep learning models, such as neural networks. Examples of deep learning frameworks include TensorFlow, Keras, and PyTorch.
A machine learning library is a collection of functions and algorithms that can be used to build machine learning models. Examples of machine learning libraries include scikit-learn, Weka, and Microsoft Cognitive Toolkit (CNTK).