Hi,
Thanks for the replay, which version of python you are using?
If you are using python3 you can install the periphery package with this command.
</s>sudo pip3 install python-periphery <e>
or
for python 2 try with
</s>sudo pip install python-periphery <e>
and try to run the code again and please let me know the feedback.