Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue pip Install web3 #2279

Closed
SomeoneVacuous opened this issue Dec 26, 2021 · 6 comments
Closed

Issue pip Install web3 #2279

SomeoneVacuous opened this issue Dec 26, 2021 · 6 comments

Comments

@SomeoneVacuous
Copy link

  • Version: x.x.x
  • Python: 3.10.1
  • OS: Windows
  • pip freeze output
astroid==2.9.0
backports.entry-points-selectable==1.1.1
colorama==0.4.4
distlib==0.3.4
eth-hash==0.3.2
eth-typing==2.2.2
filelock==3.4.0
isort==5.10.1
lazy-object-proxy==1.7.1
mccabe==0.6.1
platformdirs==2.4.0
pylint==2.12.2
six==1.16.0
toml==0.10.2
toolz==0.11.2
virtualenv==20.10.0
wrapt==1.13.3

What was wrong?

Got error when install web3 via pip install web3

Collecting web3
  Using cached web3-5.25.0-py3-none-any.whl (485 kB)
Collecting jsonschema<4.0.0,>=3.2.0
  Using cached jsonschema-3.2.0-py2.py3-none-any.whl (56 kB)
Collecting protobuf<4,>=3.10.0
  Using cached protobuf-3.19.1-py2.py3-none-any.whl (162 kB)
Collecting websockets<10,>=9.1
  Using cached websockets-9.1-cp310-cp310-win_amd64.whl
Collecting requests<3.0.0,>=2.16.0
  Using cached requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting lru-dict<2.0.0,>=1.1.6
  Using cached lru-dict-1.1.7.tar.gz (10 kB)
  Preparing metadata (setup.py) ... done
Collecting eth-abi<3.0.0,>=2.0.0b6
  Using cached eth_abi-2.1.1-py3-none-any.whl (27 kB)
Collecting eth-typing<3.0.0,>=2.0.0
  Using cached eth_typing-2.2.2-py3-none-any.whl (6.2 kB)
Collecting pywin32>=223
  Using cached pywin32-303-cp310-cp310-win_amd64.whl (9.2 MB)
Collecting eth-utils<2.0.0,>=1.9.5
  Using cached eth_utils-1.10.0-py3-none-any.whl (24 kB)
Collecting hexbytes<1.0.0,>=0.1.0
  Using cached hexbytes-0.2.2-py3-none-any.whl (6.1 kB)
Collecting aiohttp<4,>=3.7.4.post0
  Using cached aiohttp-3.8.1-cp310-cp310-win_amd64.whl (555 kB)
Collecting eth-hash[pycryptodome]<1.0.0,>=0.2.0
  Using cached eth_hash-0.3.2-py3-none-any.whl (8.8 kB)
Collecting eth-account<0.6.0,>=0.5.6
  Using cached eth_account-0.5.6-py3-none-any.whl (101 kB)
Collecting ipfshttpclient==0.8.0a2
  Using cached ipfshttpclient-0.8.0a2-py3-none-any.whl (82 kB)
Collecting multiaddr>=0.0.7
  Using cached multiaddr-0.0.9-py2.py3-none-any.whl (16 kB)
Collecting yarl<2.0,>=1.0
  Using cached yarl-1.7.2-cp310-cp310-win_amd64.whl (122 kB)
Collecting aiosignal>=1.1.2
  Using cached aiosignal-1.2.0-py3-none-any.whl (8.2 kB)
Collecting charset-normalizer<3.0,>=2.0
  Using cached charset_normalizer-2.0.9-py3-none-any.whl (39 kB)
Collecting multidict<7.0,>=4.5
  Using cached multidict-5.2.0-cp310-cp310-win_amd64.whl (45 kB)
Collecting async-timeout<5.0,>=4.0.0a3
  Using cached async_timeout-4.0.2-py3-none-any.whl (5.8 kB)
Collecting attrs>=17.3.0
  Using cached attrs-21.2.0-py2.py3-none-any.whl (53 kB)
Collecting frozenlist>=1.1.1
  Using cached frozenlist-1.2.0-cp310-cp310-win_amd64.whl (83 kB)
Collecting parsimonious<0.9.0,>=0.8.0
  Using cached parsimonious-0.8.1-py3-none-any.whl
Collecting eth-rlp<2,>=0.1.2
  Using cached eth_rlp-0.2.1-py3-none-any.whl (5.0 kB)
Collecting eth-keyfile<0.6.0,>=0.5.0
  Using cached eth_keyfile-0.5.1-py3-none-any.whl (8.3 kB)
Collecting eth-keys!=0.3.2,<0.4.0,>=0.2.1
  Using cached eth_keys-0.3.3-py3-none-any.whl (20 kB)
Collecting rlp<3,>=1.0.0
  Using cached rlp-2.0.1-py2.py3-none-any.whl (20 kB)
Collecting bitarray<1.3.0,>=1.2.1
  Using cached bitarray-1.2.2.tar.gz (48 kB)
  Preparing metadata (setup.py) ... done
Collecting pycryptodome<4,>=3.6.6
  Using cached pycryptodome-3.12.0-cp35-abi3-win_amd64.whl (1.8 MB)
Collecting cytoolz<1.0.0,>=0.10.1
  Using cached cytoolz-0.11.2.tar.gz (481 kB)
  Preparing metadata (setup.py) ... done
Requirement already satisfied: setuptools in c:\users\user\desktop\blockchain\testenv\lib\site-packages (from jsonschema<4.0.0,>=3.2.0->web3) (59.3.0)
Collecting pyrsistent>=0.14.0
  Using cached pyrsistent-0.18.0-cp310-cp310-win_amd64.whl
Collecting six>=1.11.0
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting idna<4,>=2.5
  Using cached idna-3.3-py3-none-any.whl (61 kB)
Collecting certifi>=2017.4.17
  Using cached certifi-2021.10.8-py2.py3-none-any.whl (149 kB)
Collecting urllib3<1.27,>=1.21.1
  Using cached urllib3-1.26.7-py2.py3-none-any.whl (138 kB)
Collecting toolz>=0.8.0
  Using cached toolz-0.11.2-py3-none-any.whl (55 kB)
Collecting varint
  Using cached varint-1.0.2-py3-none-any.whl
Collecting base58
  Using cached base58-2.1.1-py3-none-any.whl (5.6 kB)
Collecting netaddr
  Using cached netaddr-0.8.0-py2.py3-none-any.whl (1.9 MB)
Building wheels for collected packages: lru-dict, bitarray, cytoolz
  Building wheel for lru-dict (setup.py) ... error
  Running setup.py clean for lru-dict
  Building wheel for bitarray (setup.py) ... error
  Running setup.py clean for bitarray
  Building wheel for cytoolz (setup.py) ... error
  Running setup.py clean for cytoolz
Failed to build lru-dict bitarray cytoolz
Installing collected packages: toolz, eth-typing, eth-hash, cytoolz, six, eth-utils, varint, urllib3, rlp, pycryptodome, parsimonious, netaddr, multidict, idna, hexbytes, frozenlist, eth-keys, charset-normalizer, certifi, base58, yarl, requests, pyrsistent, multiaddr, eth-rlp, eth-keyfile, eth-abi, bitarray, attrs, async-timeout, aiosignal, websockets, pywin32, protobuf, lru-dict, jsonschema, ipfshttpclient, eth-account, aiohttp, web3
    Running setup.py install for cytoolz ... error
@dbfreem
Copy link
Contributor

dbfreem commented Dec 26, 2021

I ran into this issue on windows and decided to use WSL connected to VS Code instead of trying to work through the issue.

@SomeoneVacuous
Copy link
Author

I ran into this issue on windows and decided to use WSL connected to VS Code instead of trying to work through the issue.

Thank you, with which distribution?

@dbfreem
Copy link
Contributor

dbfreem commented Dec 28, 2021

Ubuntu is what I am currently running

@pacrob
Copy link
Contributor

pacrob commented Dec 28, 2021

Python 3.10 support is in the works - see Issue #2175
Try it with 3.8 or 3.9.

@fselmo
Copy link
Collaborator

fselmo commented Jan 14, 2022

@SomeoneVacuous did using a python version that is not 3.10 resolve this for you? Please update / mark this closed if so. Thanks!

@fselmo
Copy link
Collaborator

fselmo commented Jan 14, 2022

This issue is being tracked by ethereum/eth-account#132. I am going to close this in hopes of keeping the conversation in one place.

For now, the most relevant documentation can be found here: https://web3py.readthedocs.io/en/stable/troubleshooting.html#why-am-i-getting-visual-c-or-cython-not-installed-error

We realize this does not seem to work for everyone and we expect to get to this issue very soon.

@fselmo fselmo closed this as completed Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants