Problem with installing testrpc using python-pip

0 votes

I am trying to install eth-testrpc using python-pip and I am getting the following error:

millahue@millahue-ProLiant-ML350e-Gen8:~$  sudo pip3 install eth-testrpc

The directory '/home/millahue/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

The directory '/home/millahue/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Collecting eth-testrpc

  Downloading https://files.pythonhosted.org/packages/bc/9a/8a8c90b8ed4db0afc39bc7b67b52aa8cbbc9c08bbd93f7ca92719e3493a3/eth_testrpc-1.3.5-py3-none-any.whl

Collecting click>=6.6 (from eth-testrpc)

  Downloading https://files.pythonhosted.org/packages/34/c1/8806f99713ddb993c5366c362b2f908f18269f8d792aff1abfd700775a77/click-6.7-py2.py3-none-any.whl (71kB)

    100% |████████████████████████████████| 71kB 3.1MB/s

Collecting Werkzeug>=0.11.10 (from eth-testrpc)

  Downloading https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)

    100% |████████████████████████████████| 327kB 2.2MB/s

Collecting ethereum<2.0.0,>=1.6.1 (from eth-testrpc)

  Downloading https://files.pythonhosted.org/packages/8d/d2/f20638de4c3ab6a28a64c079a7e20cede57491d872c6ce62b2e6839adfe6/ethereum-1.6.1.tar.gz (128kB)

    100% |████████████████████████████████| 133kB 3.8MB/s

Collecting json-rpc>=1.10.3 (from eth-testrpc)

  Downloading https://files.pythonhosted.org/packages/61/5d/271952ce266b7a4f0a0b4b714a640ebca19fed520a4f8a011ee9752fbf52/json_rpc-1.11.0-py2.py3-none-any.whl (40kB)

    100% |████████████████████████████████| 40kB 4.2MB/s

Collecting rlp<=0.6.0,>=0.4.7 (from eth-testrpc)

Collecting pbkdf2 (from ethereum<2.0.0,>=1.6.1->eth-testrpc)

  Downloading https://files.pythonhosted.org/packages/02/c0/6a2376ae81beb82eda645a091684c0b0becb86b972def7849ea9066e3d5e/pbkdf2-1.3.tar.gz

Collecting secp256k1 (from ethereum<2.0.0,>=1.6.1->eth-testrpc)

  Downloading https://files.pythonhosted.org/packages/52/62/d7bf3829e126e517e253d2e22a63511c54bbaac34d7ddea316cde040fc49/secp256k1-0.13.2.tar.gz (156kB)

    100% |████████████████████████████████| 163kB 3.4MB/s

    Complete output from command python setup.py egg_info:

    'pkg-config' is required to install this package. Please see the README for details.


    ----------------------------------------

Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-9xf75aun/secp256k1/
Aug 10, 2018 in Blockchain by digger
• 26,740 points
974 views

1 answer to this question.

0 votes

You are facing this error because you don’t have pkg-config installed which is required for your command to run. The solution is

First run this command:

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

and then

sudo apt install libsecp256k1-dev

this should solve your error.

To know more, visit: https://github.com/ludbb/secp256k1-py

answered Aug 10, 2018 by slayer
• 29,370 points

Related Questions In Blockchain

+1 vote
1 answer
0 votes
1 answer

Can I swap an ERC-20 token with a Neo NEP5 token using a smart contract?

Every Blockchain has a separate administration. So, it ...READ MORE

answered Jun 4, 2018 in Blockchain by Perry
• 17,100 points
917 views
0 votes
1 answer

How to interact with blockchain using Java web app?

You can interact with the blockchain using ...READ MORE

answered Jul 16, 2018 in Blockchain by digger
• 26,740 points
1,130 views
0 votes
1 answer
0 votes
1 answer

Hyperledger Sawtooth vs Quorum in concurrency and speed Ask

Summary: Both should provide similar reliability of ...READ MORE

answered Sep 26, 2018 in IoT (Internet of Things) by Upasana
• 8,620 points
1,398 views
+2 votes
1 answer
0 votes
1 answer

Truffle tests not running after truffle init

This was a bug. They've fixed it. ...READ MORE

answered Sep 11, 2018 in Blockchain by Christine
• 15,790 points
1,880 views
0 votes
1 answer

Problem installing bitcoin wallet in Ubuntu.

You install Bitcoind using the following commands: sudo ...READ MORE

answered Aug 22, 2018 in Blockchain by slayer
• 29,370 points
931 views
0 votes
2 answers

Creating a private/public key with 64 characters that are already known using bitcoinjs

//public-key var address = eckey.getBitcoinAddress().toString(); var privateKeyBytesCompressed = privateKeyBytes.slice(0); ...READ MORE

answered Sep 10, 2018 in Blockchain by Misty
1,704 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP