Receiving an Error while installing web3.py
Question:
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:
Answers:
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
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
You may need to install those packages
sudo apt install python3-dev
sudo apt-get install libevent-dev
sudo apt update
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:
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
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
You may need to install those packages
sudo apt install python3-dev
sudo apt-get install libevent-dev
sudo apt update