smartcontractkit / full-blockchain-solidity-course-py

Ultimate Solidity, Blockchain, and Smart Contract - Beginner to Expert Full Course | Python Edition
MIT License
10.75k stars 2.9k forks source link

web3 is not installing #1244

Open anonymous23437 opened 2 years ago

anonymous23437 commented 2 years ago

pip install web3 gives these errors:

ERROR: Command errored out with exit status 1: command: 'C:\Program Files\Python310\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\bitarray_e4b1a79ba97946aa885e31f6907e9c09\setup.py'"'"'; file='"'"'C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\bitarray_e4b1a79ba97946aa885e31f6907e9c09\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\SmartCom\AppData\Local\Temp\pip-wheel-7v5u6rpc' cwd: C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\bitarray_e4b1a79ba97946aa885e31f6907e9c09\ Complete output (13 lines): running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.10 creating build\lib.win-amd64-3.10\bitarray copying bitarray\test_bitarray.py -> build\lib.win-amd64-3.10\bitarray copying bitarray\test_util.py -> build\lib.win-amd64-3.10\bitarray copying bitarray\util.py -> build\lib.win-amd64-3.10\bitarray copying bitarray__init__.py -> build\lib.win-amd64-3.10\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/visual-cpp-build-tools/

ERROR: Failed building wheel for bitarray Running setup.py clean for bitarray Building wheel for cytoolz (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'C:\Program Files\Python310\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\cytoolz_7ffaca6d4d504ce98158aae7eece1202\setup.py'"'"'; file='"'"'C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\cytoolz_7ffaca6d4d504ce98158aae7eece1202\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\SmartCom\AppData\Local\Temp\pip-wheel-_i04_xuo' cwd: C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\cytoolz_7ffaca6d4d504ce98158aae7eece1202\ Complete output (49 lines): ALERT: Cython not installed. Building without Cython. running bdist_wheel running build running build_py creating build creating build\lib.win-amd64-3.10 creating build\lib.win-amd64-3.10\cytoolz copying cytoolz\compatibility.py -> build\lib.win-amd64-3.10\cytoolz copying cytoolz_signatures.py -> build\lib.win-amd64-3.10\cytoolz copying cytoolz_version.py -> build\lib.win-amd64-3.10\cytoolz copying cytoolz__init.py -> build\lib.win-amd64-3.10\cytoolz creating build\lib.win-amd64-3.10\cytoolz\curried copying cytoolz\curried\exceptions.py -> build\lib.win-amd64-3.10\cytoolz\curried copying cytoolz\curried\operator.py -> build\lib.win-amd64-3.10\cytoolz\curried copying cytoolz\curried\init.py -> build\lib.win-amd64-3.10\cytoolz\curried copying cytoolz\dicttoolz.pyx -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\functoolz.pyx -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\itertoolz.pyx -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\recipes.pyx -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\utils.pyx -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\cpython.pxd -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\dicttoolz.pxd -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\functoolz.pxd -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\itertoolz.pxd -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\recipes.pxd -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\utils.pxd -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\init__.pxd -> build\lib.win-amd64-3.10\cytoolz creating build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\dev_skip_test.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_compatibility.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_curried.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_curried_toolzlike.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_dev_skip_test.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_dicttoolz.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_docstrings.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_doctests.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_embedded_sigs.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_functoolz.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_inspect_args.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_itertoolz.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_none_safe.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_recipes.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_serialization.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_signatures.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_tlz.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_utils.py -> build\lib.win-amd64-3.10\cytoolz\tests running build_ext building 'cytoolz.dicttoolz' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

ERROR: Failed building wheel for cytoolz Running setup.py clean for cytoolz Building wheel for lru-dict (setup.py) ... error ERROR: Command errored out with exit status 1: command: 'C:\Program Files\Python310\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\lru-dict_6f68c9f95ad24c9fbf356dc7bd4cea72\setup.py'"'"'; file='"'"'C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\lru-dict_6f68c9f95ad24c9fbf356dc7bd4cea72\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\SmartCom\AppData\Local\Temp\pip-wheel-o0kyoe6n' cwd: C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\lru-dict_6f68c9f95ad24c9fbf356dc7bd4cea72\ Complete output (5 lines): running bdist_wheel running build running build_ext building 'lru' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

ERROR: Failed building wheel for lru-dict Running setup.py clean for lru-dict Failed to build bitarray cytoolz lru-dict Installing collected packages: cytoolz, eth-utils, rlp, pycryptodome, parsimonious, multidict, hexbytes, frozenlist, eth-keys, base58, yarl, pyrsistent, multiaddr, eth-rlp, eth-keyfile, eth-abi, bitarray, async-timeout, aiosignal, websockets, lru-dict, jsonschema, ipfshttpclient, eth-account, aiohttp, web3 Running setup.py install for cytoolz ... error ERROR: Command errored out with exit status 1: command: 'C:\Program Files\Python310\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\cytoolz_7ffaca6d4d504ce98158aae7eece1202\setup.py'"'"'; file='"'"'C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\cytoolz_7ffaca6d4d504ce98158aae7eece1202\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\SmartCom\AppData\Local\Temp\pip-record-jgqc0spj\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\SmartCom\AppData\Roaming\Python\Python310\Include\cytoolz' cwd: C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\cytoolz_7ffaca6d4d504ce98158aae7eece1202\ Complete output (49 lines): ALERT: Cython not installed. Building without Cython. running install running build running build_py creating build creating build\lib.win-amd64-3.10 creating build\lib.win-amd64-3.10\cytoolz copying cytoolz\compatibility.py -> build\lib.win-amd64-3.10\cytoolz copying cytoolz_signatures.py -> build\lib.win-amd64-3.10\cytoolz copying cytoolz_version.py -> build\lib.win-amd64-3.10\cytoolz copying cytoolz__init.py -> build\lib.win-amd64-3.10\cytoolz creating build\lib.win-amd64-3.10\cytoolz\curried copying cytoolz\curried\exceptions.py -> build\lib.win-amd64-3.10\cytoolz\curried copying cytoolz\curried\operator.py -> build\lib.win-amd64-3.10\cytoolz\curried copying cytoolz\curried\init.py -> build\lib.win-amd64-3.10\cytoolz\curried copying cytoolz\dicttoolz.pyx -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\functoolz.pyx -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\itertoolz.pyx -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\recipes.pyx -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\utils.pyx -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\cpython.pxd -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\dicttoolz.pxd -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\functoolz.pxd -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\itertoolz.pxd -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\recipes.pxd -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\utils.pxd -> build\lib.win-amd64-3.10\cytoolz copying cytoolz\init__.pxd -> build\lib.win-amd64-3.10\cytoolz creating build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\dev_skip_test.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_compatibility.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_curried.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_curried_toolzlike.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_dev_skip_test.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_dicttoolz.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_docstrings.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_doctests.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_embedded_sigs.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_functoolz.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_inspect_args.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_itertoolz.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_none_safe.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_recipes.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_serialization.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_signatures.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_tlz.py -> build\lib.win-amd64-3.10\cytoolz\tests copying cytoolz\tests\test_utils.py -> build\lib.win-amd64-3.10\cytoolz\tests running build_ext building 'cytoolz.dicttoolz' extension error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/

ERROR: Command errored out with exit status 1: 'C:\Program Files\Python310\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\cytoolz_7ffaca6d4d504ce98158aae7eece1202\setup.py'"'"'; file='"'"'C:\Users\SmartCom\AppData\Local\Temp\pip-install-8xa4fdck\cytoolz_7ffaca6d4d504ce98158aae7eece1202\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\SmartCom\AppData\Local\Temp\pip-record-jgqc0spj\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\SmartCom\AppData\Roaming\Python\Python310\Include\cytoolz' Check the logs for full command output.

tayyipcanbay commented 2 years ago

You have to install C++ Build tools there is a link inside the error message install it then restart your computer. It should be fixed. I got the same error it works for me

Liber72 commented 1 year ago

it doesn't seem to work for me