It means, the python your package is using is not the correct one or source package python.
Find using command `which python`.
If it is /usr/local/bin/python
Rename this file , the original python file will be in /usr/bin/python
Now run your package again.
Find using command `which python`.
If it is /usr/local/bin/python
Rename this file , the original python file will be in /usr/bin/python
Now run your package again.