0

I am trying to install web3.py through the command pip install web3 however I cannot succeed without getting an error.

I have tried the advice on this website however that did not work, below is the error that I receive:

TylerH
  • 20,799
  • 66
  • 75
  • 101
creed
  • 1,409
  • 1
  • 9
  • 18

3 Answers3

1

As advised here in a related stackoverflow thread, grab various wheel files that are required from here.

In this case it seems you are failing at cytoolz so you can manually install the whl files.

Let's say you are running a 64 bit environment, you can download cytoolz‑0.10.1‑cp38‑cp38‑win_amd64.whl file and run pip install cytoolz‑0.10.1‑cp38‑cp38‑win_amd64.whl in the same directory as your whl file

adadlani
  • 56
  • 4
  • Are you running the above command using the correct wheel filename/filepath that you downloaded from [here](https://www.lfd.uci.edu/~gohlke/pythonlibs/#cytoolz)? You can download the whl file based on your environment – adadlani Jun 15 '20 at 20:33
0

Since this is probably windows platform you are using, you need to install Microsoft C++ build tools and then also add them to your path, if it still doesn't work I suggest switching to Linux or using WSL

Amartya Gaur
  • 665
  • 6
  • 21
0

You may need to install those packages

sudo apt install python3-dev
sudo apt-get install libevent-dev
sudo apt update

Related answers

MD SHAYON
  • 7,001
  • 45
  • 38