Installing pysqlcipher3 on CentOS

dheeraj alimchandani
3 min readApr 25, 2021

The reason to write this article is that pip installing pysqlcipher3 gives successfully installed message but behind the scene the library does not installs and gives you Module not found error. This is still easier to solve in Debian systems but becomes way difficult to debug on CentOS or Fedora. This article focuses on installing pysqlcipher3 on CentOS the right way. I haven’t tried on Fedora but I guess the same steps should do the work

Note: If you are on Debian then the process is way simpler:

$ sudo apt install sqlcipher libsqlcipher0 libsqlcipher-dev
$ sudo -H pip3 install pysqlcipher3

Installing sqlcipher on CentOS is not that straight forward compared to Ubuntu(Debian) where we can do “sudo apt install sqlcipher” as there are no sqlcipher packages available for CentOS. Therefore it has to be compiled from the source code and installed.

Installing sqlcipher

Step 1: Download the source files from github

$ git clone



Step 3: Install the latest openssl

$ sudo yum install openssl

Step 4: Go into the source code folder that was cloned from github and run the following command:

$ ./configure --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" \
$ make

EDIT : In case ‘make’ does not work and gives :bash: tclsh: command not found

$ sudo yum install tcl

Step 5: Check the value in the $PATH

$ echo $PATH

Step 6: Copy the sqlcipher file from the sqlcipher directory to /usr/local/sbin (or any one of the path that is set in $PATH)

cp sqlcipher /usr/local/sbin/

This completes the installation of sqlcipher on CentOS. You can verify if the installation is successful by running :

$ sqlcipher --version3.15.2 2016-11-28 19:13:37 bbd85d235f7037c6a033a9690534391ffeacecc8