# How to use openfhe with python

**URL:** <https://openfhe.discourse.group/t/how-to-use-openfhe-with-python/1092>\
**Category:** OpenFHE ports/wrappers\
**Tags:** questions, openfhe-help\
**Created:** [February 27, 2024, 6:07am UTC](https://openfhe.discourse.group/t/how-to-use-openfhe-with-python/1092 "2024-02-27T06:07:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![YDH](https://avatars.discourse-cdn.com/v4/letter/y/7ab992/32.png) [@YDH](https://openfhe.discourse.group/u/YDH)\
**Post date:** [February 27, 2024, 6:07am UTC](https://openfhe.discourse.group/t/how-to-use-openfhe-with-python/1092/1 "2024-02-27T06:07:57Z")

</div>

I want to use openfhe with python  
I followed openfhe-python wapper git document, but i didn’t understand if what i did is correct.

I have three question.  
First, I cloned the ‘openfhe-python’ in my ‘openfhe-development’ folder. is that corrent?  
When i typed ‘make install’ command, the output just like this.

[100%] Built target openfhe  
Install the project…  
– Install configuration: “”  
– Installing: /…/openfhe.cpython-312-x86\_64-linux-gnu.so  
– Set runtime path of “/…/openfhe.cpython-312-x86\_64-linux-gnu.so” to “”  
(I’ve omitted some output due to personal information.  
"openfhe.cpython-312-x86\_64-linux-gnu.so"‎ file was installed in my conda virtual environment folder, not my working folder. Could this be a problem?)

Secondly, I don’t have ‘.so’ file in the ‘openfhe-python’ folder.  
Thirdly. I don’t know how to excute my python file or an example python file using openfhe library

sorry for my ignorance.  
can you help me?

---

<div class="post-metadata">

**Author:** ![ypolyakov](https://yyz1.discourse-cdn.com/flex031/user_avatar/openfhe.discourse.group/ypolyakov/32/47_2.png) [@ypolyakov](https://openfhe.discourse.group/u/ypolyakov)\
**Post date:** [February 28, 2024, 6:26pm UTC](https://openfhe.discourse.group/t/how-to-use-openfhe-with-python/1092/2 "2024-02-28T18:26:23Z")

</div>

Hi @YDH

Please follow the instructions at [GitHub - openfheorg/openfhe-python: Official Python wrapper for OpenFHE. Current pre-release version is v0.8.5 (released on February 18, 2024).](https://github.com/openfheorg/openfhe-python/tree/main?tab=readme-ov-file#building-from-source)

It is better to clone to openfhe-development and openfhe-python in different/independent folders. For simplest setup, I suggest using “sudo make install” for both OpenFHE and openfhe-python.

Another option is to use a docker image (see [openfhe-python/docker/README.md at docker · openfheorg/openfhe-python · GitHub](https://github.com/openfheorg/openfhe-python/blob/docker/docker/README.md))
