This repository was archived by the owner on May 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 170
Installing pynacl on Windows
Brian Hoffman edited this page Sep 20, 2015
·
13 revisions
This is a work in progress wiki for installing pynacl library on Windows. These instructions have been tested on:
- Windows 8.1 Professional
- Get Visual C++ for Python 9.0 (http://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi)
- Download libsodium-msvc-1.0.3.zip (https://download.libsodium.org/libsodium/releases/libsodium-1.0.3-msvc.zip
- Make a copy and rename the following files:
- <libsodium-1.0.3-msvc>/x64/Release/v110/dynamic/libsodium.dll -> sodium.dll
- <libsodium-1.0.3-msvc>/x64/Release/v110/dynamic/libsodium.lib -> sodium.lib
- Copy <libsodium-1.0.3-msvc>/x64/Release/v110/libsodium.dll C:\Python27\Lib\site-packages\PyNaCl-0.3.0-py2.7-amd64.egg\nacl_lib
- Download these two files and put them in lib sodium-msvc-1.0.3\include
- set INCLUDE=<libsodium-1.0.3-msvc>/include
- set LIB=<libsodium-1.0.3-msvc>\x64\Release\v110\dynamic
- set SODIUM_INSTALL=system
- In the pynacl folder:
- python setup.py build
- python setup.py install