sammchardy / python-binance-chain

Binance Chain Exchange API python implementation for automated trading

Home Page:http://python-binance-chain.rtfd.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pip install fails on linux

nandubatchu opened this issue · comments

@sammchardy can you check this log during pip installation?

Collecting protobuf>=3.6.1 (from python-binance-chain==0.1.8->-r requirements.txt (line 48))
09:22:51   Using cached https://files.pythonhosted.org/packages/5a/aa/a858df367b464f5e9452e1c538aa47754d467023850c00b000287750fa77/protobuf-3.7.1-cp36-cp36m-manylinux1_x86_64.whl
09:22:51 Collecting secp256k1>=0.13.2 (from python-binance-chain==0.1.8->-r requirements.txt (line 48))
09:22:51   Using cached https://files.pythonhosted.org/packages/52/62/d7bf3829e126e517e253d2e22a63511c54bbaac34d7ddea316cde040fc49/secp256k1-0.13.2.tar.gz
09:22:51     Complete output from command python setup.py egg_info:
09:22:51     'pkg-config' is required to install this package. Please see the README for details.
09:22:51     
09:22:51     ----------------------------------------
09:22:51 Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-lk9kvjwk/secp256k1/

Check the requirements for libsecp256k1 https://github.com/ludbb/secp256k1-py

For ubuntu this command will install what you need

sudo apt install build-essential automake pkg-config libtool libffi-dev libgmp-dev

@sammchardy thank you, that fixed the issue.

commented

You can try apt install libsecp256k1-dev too