Canonical ensemble in non-extensive statistical mechanics