Python Forum

Full Version: web3
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, when installing web3 module i've got the following error (C+++ is already installed):


ERROR: Failed building wheel for bitarray
ERROR: Command errored out with exit status 1:
command: 'F:\ana\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-6g5ufi0m\\bitarray\\setup.py'"'"'; __file__='"'"'C:\\Users\\hp\\AppData\\Local\\Temp\\pip-install-6g5ufi0m\\bitarray\\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\hp\AppData\Local\Temp\pip-record-jsb15jfv\install-record.txt' --single-version-externally-managed --compile --install-headers 'F:\ana\Include\bitarray'
cwd: C:\Users\hp\AppData\Local\Temp\pip-install-6g5ufi0m\bitarray\
Complete output (13 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.8
creating build\lib.win-amd64-3.8\bitarray
copying bitarray\test_bitarray.py -> build\lib.win-amd64-3.8\bitarray
copying bitarray\test_util.py -> build\lib.win-amd64-3.8\bitarray
copying bitarray\util.py -> build\lib.win-amd64-3.8\bitarray
copying bitarray\__init__.py -> build\lib.win-amd64-3.8\bitarray
running build_ext
building 'bitarray._bitarray' extension
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visua...ild-tools/
Download and install bitarray
So for you it will be this version.
pip install bitarray‑2.1.0‑cp38‑cp38‑win_amd64.whl
Then try install again.

It's preferably to use virtual environment as it install a lot of packages.
venv is build into Python now so it easy to use.
(May-10-2021, 05:12 PM)adam2001 Wrote: [ -> ](C+++ is already installed):
It's not se easy as most have version as Python 3.8 is build with,therefore is Wheel as posted over and easier solution.