To install Liberate.FHE, there are a few prerequisites that need to be met. First, you will need an Nvidia graphics card. Additionally, CUDA and Python must also be installed. Only after meeting these requirements can you proceed with the installation of Liberate.FHE.
Detailed steps to install Liberate.FHE can be found on How to Install. After downloading Liberate.FHE from GitHub, it needs to be installed as a Python package
Please refer to the respective page for instructions on how to install a GPU.
Please refer to the respective page for instructions on how to install a CUDA.
Please refer to the respective page for instructions on how to install a Python.
Clone the Github repository of Liberate.FHE to obtain the latest source code.
Use poetry to install the project dependencies. Open the terminal and run the command poetry install
. This will automatically install all the required packages for the Liberate.FHE.
To build CUDA by running the setup.py
file. In the terminal, run the command poetry run python setup.py install
. This command will build CUDA files.
Install the Liberate.FHE by running the command poetry run python -m pip install .
in the terminal. This will install the Liberate.FHE library into your system.
To use Liberate.FHE, a GPU is required. This document explains how to set up and install the Nvidia graphics card driver and CUDA. It provides steps to identify and install the GPU, update package lists, install Nvidia drivers, verify the installation, install the CUDA toolkit, set environment variables, and verify the CUDA installation.
Before you begin, it's essential to identify the Nvidia GPU model in your system. You can use the following commands to check:
If the Nvidia graphics card is not installed or an incompatible version of CUDA is installed, install a new version.
Ensure that your package lists are up to date.
Check available graphic cards.
Automatically install the recommended drivers.
Alternatively, manually install the desired version.
Don't forget to restart the server after installing the graphic card driver.
Please ensure that the graphics card is in working order.
Please refer to the instructions provided above.
Assuming you've downloaded the toolkit:
Add CUDA to your PATH
and update LD_LIBRARY_PATH
. You can do this by adding the following lines to your ~/.bashrc
or ~/.zshrc
file:
Remember to provide the source for your updated profile:
Please verify if CUDA has been installed correctly by executing the following command:
This should display the CUDA compiler version.
This document offers comprehensive guidelines for installing Python on Ubuntu. It discusses multiple installation methods, such as utilizing APT, Anaconda
, or pyenv
for Python version management. The document also provides detailed instructions for installing Anaconda
, setting up a virtual environment with Anaconda, and installing and configuring pyenv
for Python version and virtual environment management.
Before installing on Ubuntu, it is important to check if Python is already installed on your system. You can do this by running the following command:
If Python ^3.10
is not already installed, you have the option to use APT to install it on your system. To do so, please follow these steps:
To update the system repository list, use the following command:sudo apt install python3
To set up Python, install the required dependencies using the following command:sudo apt
Install the latest version of Python with the command:
(Recommended) Using Anaconda or pyenv
Instead of directly installing Python on your system, it is recommended to use Python version management tools like Anaconda or pyenv.
If you are using Linux and want to use GUI packages, you will need to install additional dependencies for Qt.
To install the latest version of Anaconda, follow these steps:
Download the latest version of Anaconda from the official website:shasum -a 256
(Recommended) Ensure the integrity of the installer's data by verifying it with SHA-256. For additional details on hash verification, please refer to the documentation on cryptographic hash validation.
Install Anaconda by running the downloaded installer :
Update all packages in Anaconda
Set up a Python Virtual Environment using Anaconda :
Activate the virtual environment :
To configure pyenv, you can simply follow these steps :
Download pyenv using the following command:
Update pyenv to the latest version :
To ensure proper configuration, please add the necessary settings to your shell startup file (~/.bashrc
, ~/.zshrc
, etc.), based on your shell environment.
For Bash :
For Zsh :
To install the Python version you want, you can use pyenv. First check the available Python versions using the command pyenv install --list
. Then, install a specific version by running the appropriate command.
To start, create a Python virtual environment and activate it :
If you encounter any issues during the installation or need further customization, you can refer to the official or seek help from the Ubuntu community forums.
Make sure your GPU is CUDA-compatible. You can find a list of CUDA-enabled GPUs on the .
Visit the Nvidia download page.
is a software package that includes Python and R programming languages. It is widely used in scientific computing for various fields like data science, machine learning, and large-scale data processing.
For more information on how to use Anaconda and its features, please refer to the .
is a tool that enables you to conveniently handle multiple Python versions and virtual environments.
To learn more about using pyenv
and its features, please refer to the .