Skip to content
This repository has been archived by the owner on Nov 21, 2023. It is now read-only.

How to install nuFHE #2

Closed
Luidy opened this issue Sep 20, 2018 · 5 comments
Closed

How to install nuFHE #2

Luidy opened this issue Sep 20, 2018 · 5 comments

Comments

@Luidy
Copy link

Luidy commented Sep 20, 2018

Hello.
I want to know how to install nuFHE.
I would be grateful if you can give us details of what steps you should take to use your good project.
Thanks.

@fjarri
Copy link
Collaborator

fjarri commented Sep 20, 2018

At the moment nufhe is not present on PyPi, so you need to install it manually in the standard way:

  • clone the repository, or download and extract the files into a temporary directory (say, nufhe);
  • cd nufhe
  • pip install . (or pip3, if that's what it's linked to in your environment)

Note that:

  • You need Python >= 3.5
  • You need to install either or pycuda or pyopencl, depending on which videocard and GPGPU platform you have available (pycuda is for nVidia cards, pyopencl works for any card). They are present on PyPi and in many Linux repos, but may require you to install CUDA or OpenCL drivers — refer to their respective documentations for details. nufhe does not install them automatically, because different systems may have only CUDA or only OpenCL available.

@Luidy
Copy link
Author

Luidy commented Sep 28, 2018

Thank you for your reply.
I installed nuFHE and pycuda as your answer.
And I typed the command "python3 ./gate_nand.py" in the "example" directory to run the "examples / gate_nand.py file"
However, The problems such as "ModuleNotFoundError: No module named 'nufhe'" occured.
I wanna solve this problem and run "gate_nand.py".

I'll wait for your reply.
Thanks.

@fjarri
Copy link
Collaborator

fjarri commented Sep 28, 2018

Are you sure that you used the same Python version to install it as you do to run gate_nand.py? Is there nufhe in the output of python3 -m pip list?

@Luidy
Copy link
Author

Luidy commented Oct 12, 2018

Thanks. I solved this problem. :)

@fjarri
Copy link
Collaborator

fjarri commented Oct 13, 2018

Glad to hear it! I'm going to leave the issue open to remind myself that I need to describe the installation process in the docs and publish nufhe on PyPi (will happen soon).

@fjarri fjarri closed this as completed in 7555dd2 Oct 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants