Python import external modules

can we import external modules such as if i want to create a custom excel report the i need to use XlsxWriter pypi. How to add this pypi for python script ?