Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy
 

How to install phe via python pip




phe - Partially Homomorphic Encryption library for Python, it belongs to Classifiers:

- License :: OSI Approved :: GNU General Public License v3 (GPLv3)
- Programming Language :: Python :: 3.11
- Topic :: Scientific/Engineering :: Mathematics
- Topic :: Security
- Topic :: Security :: Cryptography

When you know about this project and you want to new install phe to support your project or you get trouble as ModuleNotFoundError: No module named "phe" or ImportError: cannot import name "phe" in your project, let follow this tutorial to install phe



Installation:

Step 1: First, ensure you installed pip in your os, to check pip has been installed on your computer

In Windows (CMD):

py -m pip --version

In Unix/macOS:

python3 -m pip --version

Ensure pip, setuptools, and wheel are up to date:

In Windows (CMD):

py -m pip install --upgrade pip setuptools wheel

In Unix/macOS:

python3 -m pip install --upgrade pip setuptools wheel


Optional - If you want to install in virtual environment:

In Windows (CMD):

- Install virtualenv - if you installed it, please ignore

py -m pip install --user virtualenv

- Create a virtual environment

py -m venv test_phe_env

- Active the virtual environment

test_phe_env\Scripts\active

In Unix/macOS:

- Install virtualenv - if you installed it, please ignore

pip3 install virtualenv

- Create a virtual environment

python3 -m venv test_phe_env

- Active the virtual environment

source test_phe_env/bin/active


Step 2: OK, now, let flow below content to start the installation phe

To install phe on Windows(CMD):

py -m pip install phe

To install phe on Unix/macOs:

pip install phe


Step 3: If you want to install a specific phe version, add ==<phe version> to the end command line

Example:

pip install phe==1.0


Please see the version list below table:

VersionReleased dateCommand
phe 1.5.02022-04-20T01:45:33Windows:

py -m pip install phe==1.5.0

Unix/macOs:

pip install phe==1.5.0

phe 1.4.02018-04-20T02:21:42Windows:

py -m pip install phe==1.4.0

Unix/macOs:

pip install phe==1.4.0

phe 1.3.12018-01-25T03:26:55Windows:

py -m pip install phe==1.3.1

Unix/macOs:

pip install phe==1.3.1

phe 1.3.02017-02-08T04:17:46Windows:

py -m pip install phe==1.3.0

Unix/macOs:

pip install phe==1.3.0

phe 1.2.32016-06-02T04:21:07Windows:

py -m pip install phe==1.2.3

Unix/macOs:

pip install phe==1.2.3

phe 1.2.22016-01-13T03:51:16Windows:

py -m pip install phe==1.2.2

Unix/macOs:

pip install phe==1.2.2

phe 1.2.12016-01-12T04:06:35Windows:

py -m pip install phe==1.2.1

Unix/macOs:

pip install phe==1.2.1

phe 1.2.02016-01-12T03:56:32Windows:

py -m pip install phe==1.2.0

Unix/macOs:

pip install phe==1.2.0

phe 1.1.32016-01-08T06:24:06Windows:

py -m pip install phe==1.1.3

Unix/macOs:

pip install phe==1.1.3

phe 1.1.22016-01-08T06:22:29Windows:

py -m pip install phe==1.1.2

Unix/macOs:

pip install phe==1.1.2

phe 1.1.12016-01-08T06:18:39Windows:

py -m pip install phe==1.1.1

Unix/macOs:

pip install phe==1.1.1

phe 1.12016-01-08T06:14:58Windows:

py -m pip install phe==1.1

Unix/macOs:

pip install phe==1.1

phe 1.02014-12-03T23:24:21Windows:

py -m pip install phe==1.0

Unix/macOs:

pip install phe==1.0


Step 4: Otherwise, you can install phe from local archives:

Download the distribution file from phe-1.5.0.tar.gz or the specific phe version in the below list of distribution

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_phe_downloaded_file>

On Unix/macOs:

pip install <path_to_phe_downloaded_file>


List distribution:


Project link:

- Homepage
- Download