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

How to install PyNaCl via python pip




PyNaCl - Python binding to the Networking and Cryptography (NaCl) library, it belongs to Classifiers:

- Programming Language :: Python :: 3.1
- Programming Language :: Python :: 3.10
- Programming Language :: Python :: Implementation
- Programming Language :: Python :: Implementation :: CPython
- Programming Language :: Python :: Implementation :: PyPy

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



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_PyNaCl_env

- Active the virtual environment

test_PyNaCl_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_PyNaCl_env

- Active the virtual environment

source test_PyNaCl_env/bin/active


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

To install PyNaCl on Windows(CMD):

py -m pip install PyNaCl

To install PyNaCl on Unix/macOs:

pip install PyNaCl


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

Example:

pip install PyNaCl==0.1.0


Please see the version list below table:

VersionReleased dateCommand
PyNaCl 1.5.02022-01-07T22:05:41Windows:

py -m pip install PyNaCl==1.5.0

Unix/macOs:

pip install PyNaCl==1.5.0

PyNaCl 1.4.02020-05-25T19:39:23Windows:

py -m pip install PyNaCl==1.4.0

Unix/macOs:

pip install PyNaCl==1.4.0

PyNaCl 1.3.02018-09-26T18:58:51Windows:

py -m pip install PyNaCl==1.3.0

Unix/macOs:

pip install PyNaCl==1.3.0

PyNaCl 1.2.12017-12-04T08:32:29Windows:

py -m pip install PyNaCl==1.2.1

Unix/macOs:

pip install PyNaCl==1.2.1

PyNaCl 1.2.02017-11-01T19:19:51Windows:

py -m pip install PyNaCl==1.2.0

Unix/macOs:

pip install PyNaCl==1.2.0

PyNaCl 1.1.22017-03-31T07:27:00Windows:

py -m pip install PyNaCl==1.1.2

Unix/macOs:

pip install PyNaCl==1.1.2

PyNaCl 1.1.12017-03-15T13:02:14Windows:

py -m pip install PyNaCl==1.1.1

Unix/macOs:

pip install PyNaCl==1.1.1

PyNaCl 1.1.02017-03-14T16:47:20Windows:

py -m pip install PyNaCl==1.1.0

Unix/macOs:

pip install PyNaCl==1.1.0

PyNaCl 1.0.12016-01-24T03:26:32Windows:

py -m pip install PyNaCl==1.0.1

Unix/macOs:

pip install PyNaCl==1.0.1

PyNaCl 1.02016-01-23T01:04:01Windows:

py -m pip install PyNaCl==1.0

Unix/macOs:

pip install PyNaCl==1.0

PyNaCl 0.3.02015-03-04T08:13:29Windows:

py -m pip install PyNaCl==0.3.0

Unix/macOs:

pip install PyNaCl==0.3.0

PyNaCl 0.2.32013-10-28T19:41:22Windows:

py -m pip install PyNaCl==0.2.3

Unix/macOs:

pip install PyNaCl==0.2.3

PyNaCl 0.2.22013-10-28T19:38:26Windows:

py -m pip install PyNaCl==0.2.2

Unix/macOs:

pip install PyNaCl==0.2.2

PyNaCl 0.2.12013-10-28T16:00:20Windows:

py -m pip install PyNaCl==0.2.1

Unix/macOs:

pip install PyNaCl==0.2.1

PyNaCl 0.2.02013-10-28T14:43:22Windows:

py -m pip install PyNaCl==0.2.0

Unix/macOs:

pip install PyNaCl==0.2.0

PyNaCl 0.1.02013-04-14T05:29:12Windows:

py -m pip install PyNaCl==0.1.0

Unix/macOs:

pip install PyNaCl==0.1.0


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

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

After that, install by command:

On Windows(CMD):

py -m pip install <path_to_PyNaCl_downloaded_file>

On Unix/macOs:

pip install <path_to_PyNaCl_downloaded_file>


List distribution:


Project link:

- Homepage