Web3.py: Install of web3 fails

Created on 9 Jun 2018  路  11Comments  路  Source: ethereum/web3.py

  • Version: don't know
  • Python: 2.7.12
  • Ubuntu 16.04

ubuntu@ip-172-39-31-91:~$ pip install web3
Collecting web3
Using cached https://files.pythonhosted.org/packages/9d/82/baba7ddc61c1c7a066ca13af1ba34cbcd8e51154f3da51e12a0fc9451bcf/web3-4.3.0.tar.gz
web3 requires Python '>=3.5, <4' but the running Python is 2.7.12

This is as far as I got.

Most helpful comment

@prographo your system doesn't have Python.h installed. Since you're on ubuntu and it seems like you're using python3.5, try this:

sudo apt-get install python3.5-dev

or

sudo apt-get install python-dev

Check which one of those commands work? I don't have an ubuntu box to test this.

All 11 comments

web3 requires python 3.5 or above. Its good to work in a virtual environment. Try the following:

python3 -m venv venv
. venv/bin/activate
pip install web3

Have a look at python doc to learn more about managing project requirements with a virtual environments: https://docs.python.org/3/tutorial/venv.html

Thanks, The first 2 commands worked fine, but the third one (pip install web3) failed.

(venv) ubuntu@ip-172-39-31-91:~$ pip install web3
Collecting web3
  Using cached https://files.pythonhosted.org/packages/45/9a/3f08f27566d8b00fc1b472ce97c858ce6d8cc3794304d8b2ccbc81295747/web3-4.3.0-py3-none-any.whl
Collecting eth-account<0.3.0,>=0.2.1 (from web3)
  Using cached https://files.pythonhosted.org/packages/1c/f4/752b666464002dbd30d30443426cd25c045f941ae5f5e7b08eda1aee3c68/eth_account-0.2.3-py3-none-any.whl
Collecting lru-dict<2.0.0,>=1.1.6 (from web3)
  Using cached https://files.pythonhosted.org/packages/00/a5/32ed6e10246cd341ca8cc205acea5d208e4053f48a4dced2b1b31d45ba3f/lru-dict-1.1.6.tar.gz
Collecting cytoolz<1.0.0,>=0.9.0; implementation_name == "cpython" (from web3)
  Using cached https://files.pythonhosted.org/packages/36/f4/9728ba01ccb2f55df9a5af029b48ba0aaca1081bbd7823ea2ee223ba7a42/cytoolz-0.9.0.1.tar.gz
Collecting eth-utils<2.0.0,>=1.0.1 (from web3)
  Using cached https://files.pythonhosted.org/packages/67/fd/e37d9b07c3e5acbabb79dc92f46bc0723246a30fbf3fa1242cd208b0bfec/eth_utils-1.0.3-py3-none-any.whl
Collecting requests<3.0.0,>=2.16.0 (from web3)
  Using cached https://files.pythonhosted.org/packages/49/df/50aa1999ab9bde74656c2919d9c0c085fd2b3775fd3eca826012bef76d8c/requests-2.18.4-py2.py3-none-any.whl
Collecting websockets<5.0.0,>=4.0.1 (from web3)
  Using cached https://files.pythonhosted.org/packages/4a/30/f68f8e72901609397ced5cd5b59002716b3e64b1a364631124820a06fe0a/websockets-4.0.1-cp35-cp35m-manylinux1_x86_64.whl
Collecting hexbytes<1.0.0,>=0.1.0 (from web3)
  Using cached https://files.pythonhosted.org/packages/18/bd/21697d93ee2153c8c12253262b740f571e94341d4cee411504032fff3f56/hexbytes-0.1.0-py3-none-any.whl
Collecting eth-abi<2,>=1.1.1 (from web3)
  Using cached https://files.pythonhosted.org/packages/a2/2b/8529812e103639a6084c9d5d62862052989cf3877a76253509fc6f19eab6/eth_abi-1.1.1-py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): eth-hash[pycryptodome] in ./venv/lib/python3.5/site-packages (from web3)
Collecting eth-keys<0.3.0,>=0.2.0b3 (from eth-account<0.3.0,>=0.2.1->web3)
  Using cached https://files.pythonhosted.org/packages/9b/96/bec507291a2ecac65358b4485282ce02e8c0cdd30980a232791b355a1f5b/eth_keys-0.2.0b3-py3-none-any.whl
Collecting eth-keyfile<0.6.0,>=0.5.0 (from eth-account<0.3.0,>=0.2.1->web3)
  Using cached https://files.pythonhosted.org/packages/eb/a5/3615d100b62fbf20fe5d5c0d1d4d7326eac861d260b0cd2a36af2bf8ccb1/eth_keyfile-0.5.1-py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): attrdict<3,>=2.0.0 in ./venv/lib/python3.5/site-packages (from eth-account<0.3.0,>=0.2.1->web3)
Collecting eth-rlp<1,>=0.1.2 (from eth-account<0.3.0,>=0.2.1->web3)
  Using cached https://files.pythonhosted.org/packages/56/4b/b309fb44dd9bb975e84f3d626392eec1eeed0108e55a51cd7dd8956a73ad/eth_rlp-0.1.2-py3-none-any.whl
Requirement already satisfied (use --upgrade to upgrade): toolz>=0.8.0 in ./venv/lib/python3.5/site-packages (from cytoolz<1.0.0,>=0.9.0; implementation_name == "cpython"->web3)
Collecting urllib3<1.23,>=1.21.1 (from requests<3.0.0,>=2.16.0->web3)
  Using cached https://files.pythonhosted.org/packages/63/cb/6965947c13a94236f6d4b8223e21beb4d576dc72e8130bd7880f600839b8/urllib3-1.22-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests<3.0.0,>=2.16.0->web3)
  Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting idna<2.7,>=2.5 (from requests<3.0.0,>=2.16.0->web3)
  Using cached https://files.pythonhosted.org/packages/27/cc/6dd9a3869f15c2edfab863b992838277279ce92663d334df9ecf5106f5c6/idna-2.6-py2.py3-none-any.whl
Collecting certifi>=2017.4.17 (from requests<3.0.0,>=2.16.0->web3)
  Using cached https://files.pythonhosted.org/packages/7c/e6/92ad559b7192d846975fc916b65f667c7b8c3a32bea7372340bfe9a15fa5/certifi-2018.4.16-py2.py3-none-any.whl
Collecting parsimonious==0.8.0 (from eth-abi<2,>=1.1.1->web3)
  Using cached https://files.pythonhosted.org/packages/4a/89/32c55944cd30dff856f16859ee325b13c83c260d0c56c0eed511e8063c87/parsimonious-0.8.0.tar.gz
Requirement already satisfied (use --upgrade to upgrade): pycryptodome<4,>=3.5.1; extra == "pycryptodome" in ./venv/lib/python3.5/site-packages (from eth-hash[pycryptodome]->web3)
Requirement already satisfied (use --upgrade to upgrade): six in ./venv/lib/python3.5/site-packages (from attrdict<3,>=2.0.0->eth-account<0.3.0,>=0.2.1->web3)
Collecting rlp<2,>=0.6.0 (from eth-rlp<1,>=0.1.2->eth-account<0.3.0,>=0.2.1->web3)
  Using cached https://files.pythonhosted.org/packages/b4/dc/a54b93cac06f46ef49b8da6cb06a6bf77ba65bf45dec5c498f51ceefc5c6/rlp-1.0.1-py2.py3-none-any.whl
Building wheels for collected packages: lru-dict, cytoolz, parsimonious
  Running setup.py bdist_wheel for lru-dict ... error
  Complete output from command /home/ubuntu/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-__5xdn1r/lru-dict/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmp_fgde02zpip-wheel- --python-tag cp35:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for lru-dict
  Running setup.py clean for lru-dict
  Running setup.py bdist_wheel for cytoolz ... error
  Complete output from command /home/ubuntu/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-__5xdn1r/cytoolz/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpsv6_x1w6pip-wheel- --python-tag cp35:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for cytoolz
  Running setup.py clean for cytoolz
  Running setup.py bdist_wheel for parsimonious ... error
  Complete output from command /home/ubuntu/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-__5xdn1r/parsimonious/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" bdist_wheel -d /tmp/tmpd50wiygcpip-wheel- --python-tag cp35:
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for parsimonious
  Running setup.py clean for parsimonious
Failed to build lru-dict cytoolz parsimonious
Installing collected packages: cytoolz, eth-utils, eth-keys, eth-keyfile, rlp, hexbytes, eth-rlp, eth-account, lru-dict, urllib3, chardet, idna, certifi, requests, websockets, parsimonious, eth-abi, web3
  Running setup.py install for cytoolz ... error
    Complete output from command /home/ubuntu/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-__5xdn1r/cytoolz/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-e5ysv_71-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/venv/include/site/python3.5/cytoolz:
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.5
    creating build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/_signatures.py -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/_version.py -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/compatibility.py -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/__init__.py -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/utils_test.py -> build/lib.linux-x86_64-3.5/cytoolz
    creating build/lib.linux-x86_64-3.5/cytoolz/curried
    copying cytoolz/curried/exceptions.py -> build/lib.linux-x86_64-3.5/cytoolz/curried
    copying cytoolz/curried/__init__.py -> build/lib.linux-x86_64-3.5/cytoolz/curried
    copying cytoolz/curried/operator.py -> build/lib.linux-x86_64-3.5/cytoolz/curried
    copying cytoolz/utils.pyx -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/recipes.pyx -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/dicttoolz.pyx -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/itertoolz.pyx -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/functoolz.pyx -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/itertoolz.pxd -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/dicttoolz.pxd -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/cpython.pxd -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/__init__.pxd -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/utils.pxd -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/functoolz.pxd -> build/lib.linux-x86_64-3.5/cytoolz
    copying cytoolz/recipes.pxd -> build/lib.linux-x86_64-3.5/cytoolz
    creating build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_tlz.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_itertoolz.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_compatibility.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_curried_toolzlike.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_serialization.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_none_safe.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_dev_skip_test.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_signatures.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_docstrings.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/dev_skip_test.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_utils.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_functoolz.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_doctests.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_embedded_sigs.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_dicttoolz.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_curried.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_inspect_args.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    copying cytoolz/tests/test_recipes.py -> build/lib.linux-x86_64-3.5/cytoolz/tests
    running build_ext
    building 'cytoolz.dicttoolz' extension
    creating build/temp.linux-x86_64-3.5
    creating build/temp.linux-x86_64-3.5/cytoolz
    x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I/home/ubuntu/venv/include -I/usr/include/python3.5m -c cytoolz/dicttoolz.c -o build/temp.linux-x86_64-3.5/cytoolz/dicttoolz.o
    cytoolz/dicttoolz.c:17:20: fatal error: Python.h: No such file or directory
    compilation terminated.
    error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

    ----------------------------------------
Command "/home/ubuntu/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-__5xdn1r/cytoolz/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-e5ysv_71-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/ubuntu/venv/include/site/python3.5/cytoolz" failed with error code 1 in /tmp/pip-build-__5xdn1r/cytoolz/
You are using pip version 8.1.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

@prographo your system doesn't have Python.h installed. Since you're on ubuntu and it seems like you're using python3.5, try this:

sudo apt-get install python3.5-dev

or

sudo apt-get install python-dev

Check which one of those commands work? I don't have an ubuntu box to test this.

The first one worked. It then installed, you are very great genius.

(venv) ubuntu@ip-172-39-31-91:~$ pip install web3
Requirement already satisfied (use --upgrade to upgrade): web3 in ./venv/lib/python3.5/site-packages
Requirement already satisfied (use --upgrade to upgrade): hexbytes<1.0.0,>=0.1.0 in ./venv/lib/python3.5/site-packages (from web3)
Requirement already satisfied (use --upgrade to upgrade): lru-dict<2.0.0,>=1.1.6 in ./venv/lib/python3.5/site-packages (from web3)
Requirement already satisfied (use --upgrade to upgrade): eth-account<0.3.0,>=0.2.1 in ./venv/lib/python3.5/site-packages (from web3)
Requirement already satisfied (use --upgrade to upgrade): eth-abi<2,>=1.1.1 in ./venv/lib/python3.5/site-packages (from web3)
Requirement already satisfied (use --upgrade to upgrade): eth-hash[pycryptodome] in ./venv/lib/python3.5/site-packages (from web3)
Requirement already satisfied (use --upgrade to upgrade): eth-utils<2.0.0,>=1.0.1 in ./venv/lib/python3.5/site-packages (from web3)
Requirement already satisfied (use --upgrade to upgrade): cytoolz<1.0.0,>=0.9.0; implementation_name == "cpython" in ./venv/lib/python3.5/site-packages (from web3)
Requirement already satisfied (use --upgrade to upgrade): requests<3.0.0,>=2.16.0 in ./venv/lib/python3.5/site-packages (from web3)
Requirement already satisfied (use --upgrade to upgrade): websockets<5.0.0,>=4.0.1 in ./venv/lib/python3.5/site-packages (from web3)
Requirement already satisfied (use --upgrade to upgrade): attrdict<3,>=2.0.0 in ./venv/lib/python3.5/site-packages (from eth-account<0.3.0,>=0.2.1->web3)
Requirement already satisfied (use --upgrade to upgrade): eth-rlp<1,>=0.1.2 in ./venv/lib/python3.5/site-packages (from eth-account<0.3.0,>=0.2.1->web3)
Requirement already satisfied (use --upgrade to upgrade): eth-keyfile<0.6.0,>=0.5.0 in ./venv/lib/python3.5/site-packages (from eth-account<0.3.0,>=0.2.1->web3)
Requirement already satisfied (use --upgrade to upgrade): eth-keys<0.3.0,>=0.2.0b3 in ./venv/lib/python3.5/site-packages (from eth-account<0.3.0,>=0.2.1->web3)
Requirement already satisfied (use --upgrade to upgrade): parsimonious==0.8.0 in ./venv/lib/python3.5/site-packages (from eth-abi<2,>=1.1.1->web3)
Requirement already satisfied (use --upgrade to upgrade): pycryptodome<4,>=3.5.1; extra == "pycryptodome" in ./venv/lib/python3.5/site-packages (from eth-hash[pycryptodome]->web3)
Requirement already satisfied (use --upgrade to upgrade): toolz>=0.8.0 in ./venv/lib/python3.5/site-packages (from cytoolz<1.0.0,>=0.9.0; implementation_name == "cpython"->web3)
Requirement already satisfied (use --upgrade to upgrade): certifi>=2017.4.17 in ./venv/lib/python3.5/site-packages (from requests<3.0.0,>=2.16.0->web3)
Requirement already satisfied (use --upgrade to upgrade): urllib3<1.23,>=1.21.1 in ./venv/lib/python3.5/site-packages (from requests<3.0.0,>=2.16.0->web3)
Requirement already satisfied (use --upgrade to upgrade): idna<2.7,>=2.5 in ./venv/lib/python3.5/site-packages (from requests<3.0.0,>=2.16.0->web3)
Requirement already satisfied (use --upgrade to upgrade): chardet<3.1.0,>=3.0.2 in ./venv/lib/python3.5/site-packages (from requests<3.0.0,>=2.16.0->web3)
Requirement already satisfied (use --upgrade to upgrade): six in ./venv/lib/python3.5/site-packages (from attrdict<3,>=2.0.0->eth-account<0.3.0,>=0.2.1->web3)
Requirement already satisfied (use --upgrade to upgrade): rlp<2,>=0.6.0 in ./venv/lib/python3.5/site-packages (from eth-rlp<1,>=0.1.2->eth-account<0.3.0,>=0.2.1->web3)
You are using pip version 8.1.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.

@EngrBilal what error are you getting?

Did you install python with brew? brew takes care of python-devel and related dependencies.

@voith i have the same question, so how can i solve the problem when the python3.5-dev is unable to locate package?
error information:
mqr@mqr-OptiPlex-7060:~$ sudo apt-get install python3.5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package python3.5-dev
E: Couldn't find any package by glob 'python3.5-dev'
E: Couldn't find any package by regex 'python3.5-dev'
mqr@mqr-OptiPlex-7060:~$ pip install web3
and i tried to install python-dev and python3.6-dev , but it doesn't work to install web3 on python2.
Thank you

but it doesn't work to install web3 on python2

@mengquanrun web3.py doesn't support python2

ok, got it
Thank you~

@voith sry, i want to know is there an old version of web3 which supports python2.7?
because i have an old project to use which is committed six months ago, but it depends on web3, and pyhton2.7.
thank you

@prographo your system doesn't have Python.h installed. Since you're on ubuntu and it seems like you're using python3.5, try this:

sudo apt-get install python3.5-dev

or

sudo apt-get install python-dev

Check which one of those commands work? I don't have an ubuntu box to test this.

I m using windows i have python 3.6.5 still giving me same error
Here is my error log:
Collecting web3
Using cached https://files.pythonhosted.org/packages/9d/df/0bfb618ff309ef9f2014e829daf689c13d0652534002d8dff8615b92946b/web3-4.9.1-py3-none-any.whl
Requirement already satisfied: hexbytes<1.0.0,>=0.1.0 in c:\users\chetan\anaconda3\libsite-packages (from web3) (0.1.0)
Requirement already satisfied: pypiwin32>=223; platform_system == "Windows" in c:\users\chetan\anaconda3\libsite-packages (from web3) (223)
Requirement already satisfied: eth-account<0.4.0,>=0.2.1 in c:\users\chetan\anaconda3\libsite-packages (from web3) (0.3.0)
Requirement already satisfied: requests<3.0.0,>=2.16.0 in c:\users\chetan\anaconda3\libsite-packages (from web3) (2.18.4)
Requirement already satisfied: eth-utils<2.0.0,>=1.2.0 in c:\users\chetan\anaconda3\libsite-packages (from web3) (1.4.1)
Requirement already satisfied: cytoolz<1.0.0,>=0.9.0; implementation_name == "cpython" in c:\users\chetan\anaconda3\libsite-packages (from web3) (0.9.0.1)
Requirement already satisfied: eth-abi<2.0.0,>=1.2.0 in c:\users\chetan\anaconda3\libsite-packages (from web3) (1.3.0)
Requirement already satisfied: eth-hash[pycryptodome]<1.0.0,>=0.2.0 in c:\users\chetan\anaconda3\libsite-packages (from web3) (0.2.0)
Collecting lru-dict<2.0.0,>=1.1.6 (from web3)
Using cached https://files.pythonhosted.org/packages/00/a5/32ed6e10246cd341ca8cc205acea5d208e4053f48a4dced2b1b31d45ba3f/lru-dict-1.1.6.tar.gz
Requirement already satisfied: websockets<7.0.0,>=6.0.0 in c:\users\chetan\anaconda3\libsite-packages (from web3) (6.0)
Requirement already satisfied: pywin32>=223 in c:\users\chetan\anaconda3\libsite-packages (from pypiwin32>=223; platform_system == "Windows"->web3) (223)
Requirement already satisfied: attrdict<3,>=2.0.0 in c:\users\chetan\anaconda3\libsite-packages (from eth-account<0.4.0,>=0.2.1->web3) (2.0.1)
Requirement already satisfied: eth-keyfile<0.6.0,>=0.5.0 in c:\users\chetan\anaconda3\libsite-packages (from eth-account<0.4.0,>=0.2.1->web3) (0.5.1)
Requirement already satisfied: eth-keys<0.3.0,>=0.2.0b3 in c:\users\chetan\anaconda3\libsite-packages (from eth-account<0.4.0,>=0.2.1->web3) (0.2.1)
Requirement already satisfied: eth-rlp<1,>=0.1.2 in c:\users\chetan\anaconda3\libsite-packages (from eth-account<0.4.0,>=0.2.1->web3) (0.1.2)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in c:\users\chetan\anaconda3\libsite-packages (from requests<3.0.0,>=2.16.0->web3) (3.0.4)
Requirement already satisfied: idna<2.7,>=2.5 in c:\users\chetan\anaconda3\libsite-packages (from requests<3.0.0,>=2.16.0->web3) (2.6)
Requirement already satisfied: urllib3<1.23,>=1.21.1 in c:\users\chetan\anaconda3\libsite-packages (from requests<3.0.0,>=2.16.0->web3) (1.22)
Requirement already satisfied: certifi>=2017.4.17 in c:\users\chetan\anaconda3\libsite-packages (from requests<3.0.0,>=2.16.0->web3) (2018.4.16)
Requirement already satisfied: eth-typing<3.0.0,>=1.0.0 in c:\users\chetan\anaconda3\libsite-packages (from eth-utils<2.0.0,>=1.2.0->web3) (2.1.0)
Requirement already satisfied: toolz>=0.8.0 in c:\users\chetan\anaconda3\libsite-packages (from cytoolz<1.0.0,>=0.9.0; implementation_name == "cpython"->web3) (0.9.0)
Requirement already satisfied: parsimonious<0.9.0,>=0.8.0 in c:\users\chetan\anaconda3\libsite-packages (from eth-abi<2.0.0,>=1.2.0->web3) (0.8.1)
Requirement already satisfied: pycryptodome<4,>=3.6.6; extra == "pycryptodome" in c:\users\chetan\anaconda3\libsite-packages (from eth-hash[pycryptodome]<1.0.0,>=0.2.0->web3) (3.8.1)
Requirement already satisfied: six in c:\users\chetan\anaconda3\libsite-packages (from attrdict<3,>=2.0.0->eth-account<0.4.0,>=0.2.1->web3) (1.11.0)
Requirement already satisfied: rlp<2,>=0.6.0 in c:\users\chetan\anaconda3\libsite-packages (from eth-rlp<1,>=0.1.2->eth-account<0.4.0,>=0.2.1->web3) (1.1.0)
Building wheels for collected packages: lru-dict
Building wheel for lru-dict (setup.py) ... error
Complete output from command c:\users\chetan\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\Chetan\AppData\Local\Temp\pip-install-53aq4g97\lru-dict\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\Chetan\AppData\Local\Temp\pip-wheel-86bzr2hd --python-tag cp36:
running bdist_wheel
running build
running build_ext
building 'lru' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/


Failed building wheel for lru-dict
Running setup.py clean for lru-dict
Failed to build lru-dict
Installing collected packages: lru-dict, web3
Running setup.py install for lru-dict ... error
Complete output from command c:\users\chetan\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\Chetan\AppData\Local\Temp\pip-install-53aq4g97\lru-dict\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Chetan\AppData\Local\Temp\pip-record-27m_69xb\install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_ext
building 'lru' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/

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

Command "c:\users\chetan\anaconda3\python.exe -u -c "import setuptools, tokenize;__file__='C:\Users\Chetan\AppData\Local\Temp\pip-install-53aq4g97\lru-dict\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\Chetan\AppData\Local\Temp\pip-record-27m_69xb\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Chetan\AppData\Local\Temp\pip-install-53aq4g97\lru-dict\

@mengquanrun You can try web3 v3, but it is no longer supported, so you'll have to use at your own risk 馃槥

@warkechetan it looks like you need to install Microsoft Visual C++ 14.0

Was this page helpful?
0 / 5 - 0 ratings

Related issues

drandreaskrueger picture drandreaskrueger  路  4Comments

hiqua picture hiqua  路  4Comments

Netherdrake picture Netherdrake  路  3Comments

carver picture carver  路  4Comments

evowilliamson picture evowilliamson  路  3Comments