This problem occurred when installing the package with pip
The solution is to update setuptools and pip
pip3 install --upgrade setuptools pip3 install --upgrade pip
then you would be able to install package successfully.