PyNaCl ships as a binary wheel on macOS, Windows and Linux manylinux1 [1] ,
so all dependencies are included. Make sure you have an up-to-date pip
and run:
$ pip install pynaclYou can define the environment variable LIBSODIUM_MAKE_ARGS to pass arguments to make
and enable parallelization:
$ LIBSODIUM_MAKE_ARGS=-j4 pip install pynaclPyNaCl relies on libsodium, a portable C library. A copy is bundled with PyNaCl so to install you can run:
$ pip install pynaclIf you'd prefer to use the version of libsodium provided by your
distribution, you can disable the bundled copy during install by running:
$ SODIUM_INSTALL=system pip install pynaclWarning
Usage of the legacy easy_install command provided by setuptools
is generally discouraged, and is completely unsupported in PyNaCl's case.
| [1] | manylinux1 wheels are built on a baseline linux environment based on Centos 5.11 and should work on most x86 and x86_64 glibc based linux environments. |
GNU Make (gmake) may be required for newer versions of PyNaCl. You can
set the binary to use by setting the MAKE environment variable:
$ MAKE=gmake pip install pynacl