data61 / python-paillier

A library for Partially Homomorphic Encryption in Python
Other
605 stars 134 forks source link

How to run code in example file #71

Closed Luidy closed 6 years ago

Luidy commented 6 years ago

Hello. I entered the python3 ./alternative_base.py command to run the 'alternative_base.py' code in the example file.

But ModuleNotFoundError: No module named 'phe' error occurs.

How can I run code in example file?

I'll wait for your answer. Thank you.

hardbyte commented 6 years ago

Make sure you've installed python-paillier before trying to use it.

https://python-paillier.readthedocs.io/en/latest/installation.html

Provided you've installed the dependencies you can also run examples from the top level:

python3 -m examples.alternative_base.py
Luidy commented 6 years ago

Thanks. I solved this problem. :)