If you're using Python3, then install:
python3 -m pip install --user xlsxwriter
This will run pip with the appropriate version of Python3. If you run bare pip3 and have many versions of Python install, it will still fail leading to more confusion.
The --user flag will allow to install as a regular user and no require root.