Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Installation of Python-Rocksdb

I'm trying to install Python-RocksDB package.

I tried using sudo pip3 install python-rocksdb sudo pip install python-rocksdb

However, I get this message Requirement already satisfied: python-rocksdb in /usr/local/lib/python3.6/dist-packages

I also tried cloning the github repository and installing it from source. Somehow that doesn't get installed either. Is there anything else to resolve this?

like image 959
Vivek Avatar asked Oct 15 '25 15:10

Vivek


1 Answers

Install rocksdb and Cython.

Simplified :

Solution 1

pip install Cython
pip install python-rocksdb

Solution 2

pip install git+git://github.com/twmht/python-rocksdb.git

Try the manual method :

    git clone https://github.com/facebook/rocksdb.git
    cd rocksdb
    mkdir build && cd build
    cmake ..
    make
    sudo make install INSTALL_PATH=/usr

Now you have rocksdb installed, Then make a new python virtual environment:

pip install python-rocksdb
like image 101
BPDESILVA Avatar answered Oct 17 '25 04:10

BPDESILVA