how can i resolve this error while installing web3 - python

y install' for lru-dict, since package 'wheel' is not installed.
Using legacy 'setup.py install' for websockets, since package 'wheel' is not installed.
Using legacy 'setup.py install' for bitarray, since package 'wheel' is not installed.
Using legacy 'setup.py install' for cytoolz, since package 'wheel' is not installed.
Using legacy 'setup.py install' for parsimonious, since package 'wheel' is not installed.
Using legacy 'setup.py install' for varint, since package 'wheel' is not installed.
Installing collected packages: cytoolz, six, eth-utils, varint, rlp, pycryptodome, parsimonious, netaddr, multidict, hexbytes, frozenlist, eth-keys, base58, yarl, 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
ERROR: Command errored out with exit status 1:
command: 'C:\Users\scs\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\scs\AppData\Local\Temp\pip-install-1x2juewd\cytoolz_d8cc48a9187a4f34bf96c2d682dda0ae\setup.py'"'"'; file='"'"'C:\Users\scs\AppData\Local\Temp\pip-install-1x2juewd\cytoolz_d8cc48a9187a4f34bf96c2d682dda0ae\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\scs\AppData\Local\Temp\pip-record-9zksksgh\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\scs\AppData\Local\Programs\Python\Python310\Include\cytoolz'
cwd: C:\Users\scs\AppData\Local\Temp\pip-install-1x2juewd\cytoolz_d8cc48a9187a4f34bf96c2d682dda0ae
Complete output (53 lines):
[1/5] Cythonizing cytoolz/utils.pyx
[2/5] Cythonizing cytoolz/dicttoolz.pyx
[3/5] Cythonizing cytoolz/functoolz.pyx
[4/5] Cythonizing cytoolz/itertoolz.pyx
[5/5] Cythonizing cytoolz/recipes.pyx
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:\Users\scs\AppData\Local\Programs\Python\Python310\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\Users\scs\AppData\Local\Temp\pip-install-1x2juewd\cytoolz_d8cc48a9187a4f34bf96c2d682dda0ae\setup.py'"'"'; file='"'"'C:\Users\scs\AppData\Local\Temp\pip-install-1x2juewd\cytoolz_d8cc48a9187a4f34bf96c2d682dda0ae\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record 'C:\Users\scs\AppData\Local\Temp\pip-record-9zksksgh\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\scs\AppData\Local\Programs\Python\Python310\Include\cytoolz' Check the logs for full command output.

you need to install Microsoft Visual C++ Build Tools. Just install the suggested packages, restart your computer, and try your program again. I can't remember exactly what are the packages to install, but the recommended few should be enough.

I was getting the same error when using python 3.10.4. Perhaps, it's an issue with python 3.10.x versions. It worked fine for me when I used python 3.9.8.

Related

I am getting error while installing web3 module in my django project

ERROR: Command errored out with exit status 1:
command: 'C:\Users\saran\OneDrive\Desktop\interview\crypto\core\meta\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\saran\\AppData\\Local\\Temp\\pip-install-j3khl3b4\\cytoolz_486c7a4bef2c4764b3179a18383f6bd7\\setup.py'"'"'; __file__='"'"'C:\\Users\\saran\\AppData\\Local\\Temp\\pip-install-j3khl3b4\\cytoolz_486c7a4bef2c4764b3179a18383f6bd7\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\saran\AppData\Local\Temp\pip-record-s5xwa9zp\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\saran\OneDrive\Desktop\interview\crypto\core\meta\include\site\python3.10\cytoolz'
cwd: C:\Users\saran\AppData\Local\Temp\pip-install-j3khl3b4\cytoolz_486c7a4bef2c4764b3179a18383f6bd7\
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:\Users\saran\OneDrive\Desktop\interview\crypto\core\meta\Scripts\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\saran\\AppData\\Local\\Temp\\pip-install-j3khl3b4\\cytoolz_486c7a4bef2c4764b3179a18383f6bd7\\setup.py'"'"'; __file__='"'"'C:\\Users\\saran\\AppData\\Local\\Temp\\pip-install-j3khl3b4\\cytoolz_486c7a4bef2c4764b3179a18383f6bd7\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\saran\AppData\Local\Temp\pip-record-s5xwa9zp\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\saran\OneDrive\Desktop\interview\crypto\core\meta\include\site\python3.10\cytoolz' Check the logs for full command output.
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the 'C:\Users\saran\OneDrive\Desktop\interview\crypto\core\meta\Scripts\python.exe -m pip install --upgrade pip' command.
I am getting this error when i am trying to install web3 in my django project cant understand whats wrong if anybody knows please help
i am installing it in my virtual environment
(meta) C:\Users\saran\OneDrive\Desktop\interview\crypto\core>
What happens in my case i have tried to install npm there a option name choco or may be its different something like that i have clicked that. this make upgrade my python install libraries which i never wish to install this was making the installing error after my reinstalling python all fix

Running into an error when trying to pip install python-docx

I just did a fresh install of windows to clean up my computer, moved everything over to my D drive and installed Python through Windows Store (somehow it defaulted to my C drive, so I left it there because Pycharm was getting confused about its location), now I'm trying to pip install the python-docx module for the first time and I'm stuck. I have a recent version of Microsoft C++ Visual Build Tools installed. Excuse me for any irrelevant information I provided, just wishing to be thorough. Here's what's returning in command:
.>pip install python-docx
Collecting python-docx
Using cached python-docx-0.8.11.tar.gz (5.6 MB)
Preparing metadata (setup.py) ... done
Collecting lxml>=2.3.2
Using cached lxml-4.6.3.tar.gz (3.2 MB)
Preparing metadata (setup.py) ... done
Using legacy 'setup.py install' for python-docx, since package 'wheel' is not installed.
Using legacy 'setup.py install' for lxml, since package 'wheel' is not installed.
Installing collected packages: lxml, python-docx
Running setup.py install for lxml ... error
ERROR: Command errored out with exit status 1:
command: 'C:\Users\cahez\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\cahez\\AppData\\Local\\Temp\\pip-install-8rz9vrlv\\lxml_69e9fa188fd042d6953641882e4b3a17\\setup.py'"'"'; __file__='"'"'C:\\Users\\cahez\\AppData\\Local\\Temp\\pip-install-8rz9vrlv\\lxml_69e9fa188fd042d6953641882e4b3a17\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\cahez\AppData\Local\Temp\pip-record-xpg_v_i_\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\cahez\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Include\lxml'
cwd: C:\Users\cahez\AppData\Local\Temp\pip-install-8rz9vrlv\lxml_69e9fa188fd042d6953641882e4b3a17\
Complete output (76 lines):
Building lxml version 4.6.3.
Building without Cython.
Building against pre-built libxml2 andl libxslt libraries
running install
C:\Users\cahez\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\lxml
copying src\lxml\builder.py -> build\lib.win-amd64-3.10\lxml
copying src\lxml\cssselect.py -> build\lib.win-amd64-3.10\lxml
copying src\lxml\doctestcompare.py -> build\lib.win-amd64-3.10\lxml
copying src\lxml\ElementInclude.py -> build\lib.win-amd64-3.10\lxml
copying src\lxml\pyclasslookup.py -> build\lib.win-amd64-3.10\lxml
copying src\lxml\sax.py -> build\lib.win-amd64-3.10\lxml
copying src\lxml\usedoctest.py -> build\lib.win-amd64-3.10\lxml
copying src\lxml\_elementpath.py -> build\lib.win-amd64-3.10\lxml
copying src\lxml\__init__.py -> build\lib.win-amd64-3.10\lxml
creating build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\__init__.py -> build\lib.win-amd64-3.10\lxml\includes
creating build\lib.win-amd64-3.10\lxml\html
copying src\lxml\html\builder.py -> build\lib.win-amd64-3.10\lxml\html
copying src\lxml\html\clean.py -> build\lib.win-amd64-3.10\lxml\html
copying src\lxml\html\defs.py -> build\lib.win-amd64-3.10\lxml\html
copying src\lxml\html\diff.py -> build\lib.win-amd64-3.10\lxml\html
copying src\lxml\html\ElementSoup.py -> build\lib.win-amd64-3.10\lxml\html
copying src\lxml\html\formfill.py -> build\lib.win-amd64-3.10\lxml\html
copying src\lxml\html\html5parser.py -> build\lib.win-amd64-3.10\lxml\html
copying src\lxml\html\soupparser.py -> build\lib.win-amd64-3.10\lxml\html
copying src\lxml\html\usedoctest.py -> build\lib.win-amd64-3.10\lxml\html
copying src\lxml\html\_diffcommand.py -> build\lib.win-amd64-3.10\lxml\html
copying src\lxml\html\_html5builder.py -> build\lib.win-amd64-3.10\lxml\html
copying src\lxml\html\_setmixin.py -> build\lib.win-amd64-3.10\lxml\html
copying src\lxml\html\__init__.py -> build\lib.win-amd64-3.10\lxml\html
creating build\lib.win-amd64-3.10\lxml\isoschematron
copying src\lxml\isoschematron\__init__.py -> build\lib.win-amd64-3.10\lxml\isoschematron
copying src\lxml\etree.h -> build\lib.win-amd64-3.10\lxml
copying src\lxml\etree_api.h -> build\lib.win-amd64-3.10\lxml
copying src\lxml\lxml.etree.h -> build\lib.win-amd64-3.10\lxml
copying src\lxml\lxml.etree_api.h -> build\lib.win-amd64-3.10\lxml
copying src\lxml\includes\c14n.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\config.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\dtdvalid.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\etreepublic.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\htmlparser.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\relaxng.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\schematron.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\tree.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\uri.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\xinclude.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\xmlerror.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\xmlparser.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\xmlschema.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\xpath.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\xslt.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\__init__.pxd -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\etree_defs.h -> build\lib.win-amd64-3.10\lxml\includes
copying src\lxml\includes\lxml-version.h -> build\lib.win-amd64-3.10\lxml\includes
creating build\lib.win-amd64-3.10\lxml\isoschematron\resources
creating build\lib.win-amd64-3.10\lxml\isoschematron\resources\rng
copying src\lxml\isoschematron\resources\rng\iso-schematron.rng -> build\lib.win-amd64-3.10\lxml\isoschematron\resources\rng
creating build\lib.win-amd64-3.10\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\RNG2Schtrn.xsl -> build\lib.win-amd64-3.10\lxml\isoschematron\resources\xsl
copying src\lxml\isoschematron\resources\xsl\XSD2Schtrn.xsl -> build\lib.win-amd64-3.10\lxml\isoschematron\resources\xsl
creating build\lib.win-amd64-3.10\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_abstract_expand.xsl -> build\lib.win-amd64-3.10\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_dsdl_include.xsl -> build\lib.win-amd64-3.10\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_message.xsl -> build\lib.win-amd64-3.10\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_schematron_skeleton_for_xslt1.xsl -> build\lib.win-amd64-3.10\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\iso_svrl_for_xslt1.xsl -> build\lib.win-amd64-3.10\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
copying src\lxml\isoschematron\resources\xsl\iso-schematron-xslt1\readme.txt -> build\lib.win-amd64-3.10\lxml\isoschematron\resources\xsl\iso-schematron-xslt1
running build_ext
building 'lxml.etree' 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:\Users\cahez\AppData\Local\Microsoft\WindowsApps\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\cahez\\AppData\\Local\\Temp\\pip-install-8rz9vrlv\\lxml_69e9fa188fd042d6953641882e4b3a17\\setup.py'"'"'; __file__='"'"'C:\\Users\\cahez\\AppData\\Local\\Temp\\pip-install-8rz9vrlv\\lxml_69e9fa188fd042d6953641882e4b3a17\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\cahez\AppData\Local\Temp\pip-record-xpg_v_i_\install-record.txt' --single-version-externally-managed --user --prefix= --compile --install-headers 'C:\Users\cahez\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\Include\lxml' Check the logs for full command output.
One of the dependencies for python-docx is lxml. The latest stable version of lxml is 4.6.3, released on March 21, 2021. On PyPI there is no lxml wheel for 3.10, yet. So it try to compile from source and for that Microsoft Visual C++ 14.0 or greater is required, as stated in the error.
However you can manually install lxml, before install python-docx. Download and install unofficial binary from Gohlke
Alternatively you can use pipwin to install it from Gohlke. Note there may still be problems with dependencies for lxml.
Of course, you can also downgrade to python3.9.
EDIT: As of 14 Dec 2021 the latest lxml version 4.7.1 supports python 3.10

Unable to install pymunk with pip

I'm trying to install pymunk but doing pip install pymunk gives me an error. The README file says this on Innstallation:
In the normal case pymunk can be installed with pip:
> pip install pymunk
It has one direct dependency, CFFI.
Pymunk can also be installed with conda, from the conda-forge channel:
> conda install -c conda-forge pymunk
This is the error I get:
Collecting pymunk
Using cached pymunk-5.6.0.zip (5.5 MB)
Requirement already satisfied: cffi!=1.13.1 in c:\users\emmsch001\appdata\local\programs\python\python37\lib\site-packages (from pymunk) (1.13.2)
Requirement already satisfied: pycparser in c:\users\emmsch001\appdata\local\programs\python\python37\lib\site-packages (from cffi!=1.13.1->pymunk) (2.19)
Building wheels for collected packages: pymunk
Building wheel for pymunk (setup.py) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\emmsch001\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\EMMSCH~1\\AppData\\Local\\Temp\\pip-install-qebhmk1e\\pymunk\\setup.py'"'"'; __file__='"'"'C:\\Users\\EMMSCH~1\\AppData\\Local\\Temp\\pip-install-qebhmk1e\\pymunk\\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\EMMSCH~1\AppData\Local\Temp\pip-wheel-07rt65wo'
cwd: C:\Users\EMMSCH~1\AppData\Local\Temp\pip-install-qebhmk1e\pymunk\
Complete output (61 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\pymunk
copying pymunk\arbiter.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\autogeometry.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\bb.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\body.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\collision_handler.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\constraint.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\contact_point_set.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\kivy_util.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\matplotlib_util.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\pygame_util.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\pyglet_util.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\query_info.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\shapes.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\shape_filter.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\space.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\space_debug_draw_options.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\transform.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\util.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\vec2d.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\_chipmunk_cffi.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\_chipmunk_cffi_abi.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\_libload.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\_pickle.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\__init__.py -> build\lib.win-amd64-3.7\pymunk
creating build\lib.win-amd64-3.7\pymunkoptions
copying pymunkoptions\__init__.py -> build\lib.win-amd64-3.7\pymunkoptions
creating build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\doctests.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_arbiter.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_autogeometry.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_bb.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_body.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_common.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_constraint.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_shape.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_shape_filter.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_space.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_transform.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_vec2d.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\__init__.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\__main__.py -> build\lib.win-amd64-3.7\pymunk\tests
running egg_info
writing pymunk.egg-info\PKG-INFO
writing dependency_links to pymunk.egg-info\dependency_links.txt
writing requirements to pymunk.egg-info\requires.txt
writing top-level names to pymunk.egg-info\top_level.txt
Running on Windows. GCC will be forced used
reading manifest file 'pymunk.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'examples\.ipynb_checkpoints'
writing manifest file 'pymunk.egg-info\SOURCES.txt'
running build_ext
Could not detect if on Android. Defaulting to false.
cc -std=gnu99 -ffast-math -DCHIPMUNK_FFI -g -DCP_USE_CGPOINTS=0 -DNDEBUG -shared -O3 -m64 -Ichipmunk_src\include -c chipmunk_src\src\chipmunk.c -o chipmunk_src\src\chipmunk.o
error: command 'cc' failed: No such file or directory
----------------------------------------
ERROR: Failed building wheel for pymunk
Running setup.py clean for pymunk
Failed to build pymunk
Installing collected packages: pymunk
Running setup.py install for pymunk ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\emmsch001\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\EMMSCH~1\\AppData\\Local\\Temp\\pip-install-qebhmk1e\\pymunk\\setup.py'"'"'; __file__='"'"'C:\\Users\\EMMSCH~1\\AppData\\Local\\Temp\\pip-install-qebhmk1e\\pymunk\\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\EMMSCH~1\AppData\Local\Temp\pip-record-0q5_wkzu\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\emmsch001\appdata\local\programs\python\python37\Include\pymunk'
cwd: C:\Users\EMMSCH~1\AppData\Local\Temp\pip-install-qebhmk1e\pymunk\
Complete output (61 lines):
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.7
creating build\lib.win-amd64-3.7\pymunk
copying pymunk\arbiter.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\autogeometry.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\bb.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\body.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\collision_handler.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\constraint.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\contact_point_set.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\kivy_util.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\matplotlib_util.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\pygame_util.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\pyglet_util.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\query_info.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\shapes.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\shape_filter.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\space.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\space_debug_draw_options.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\transform.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\util.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\vec2d.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\_chipmunk_cffi.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\_chipmunk_cffi_abi.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\_libload.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\_pickle.py -> build\lib.win-amd64-3.7\pymunk
copying pymunk\__init__.py -> build\lib.win-amd64-3.7\pymunk
creating build\lib.win-amd64-3.7\pymunkoptions
copying pymunkoptions\__init__.py -> build\lib.win-amd64-3.7\pymunkoptions
creating build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\doctests.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_arbiter.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_autogeometry.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_bb.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_body.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_common.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_constraint.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_shape.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_shape_filter.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_space.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_transform.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\test_vec2d.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\__init__.py -> build\lib.win-amd64-3.7\pymunk\tests
copying pymunk\tests\__main__.py -> build\lib.win-amd64-3.7\pymunk\tests
running egg_info
writing pymunk.egg-info\PKG-INFO
writing dependency_links to pymunk.egg-info\dependency_links.txt
writing requirements to pymunk.egg-info\requires.txt
writing top-level names to pymunk.egg-info\top_level.txt
Running on Windows. GCC will be forced used
reading manifest file 'pymunk.egg-info\SOURCES.txt'
reading manifest template 'MANIFEST.in'
no previously-included directories found matching 'examples\.ipynb_checkpoints'
writing manifest file 'pymunk.egg-info\SOURCES.txt'
running build_ext
Could not detect if on Android. Defaulting to false.
cc -std=gnu99 -ffast-math -DCHIPMUNK_FFI -g -DCP_USE_CGPOINTS=0 -DNDEBUG -shared -O3 -m64 -Ichipmunk_src\include -c chipmunk_src\src\chipmunk.c -o chipmunk_src\src\chipmunk.o
error: command 'cc' failed: No such file or directory
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\emmsch001\appdata\local\programs\python\python37\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\EMMSCH~1\\AppData\\Local\\Temp\\pip-install-qebhmk1e\\pymunk\\setup.py'"'"'; __file__='"'"'C:\\Users\\EMMSCH~1\\AppData\\Local\\Temp\\pip-install-qebhmk1e\\pymunk\\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\EMMSCH~1\AppData\Local\Temp\pip-record-0q5_wkzu\install-record.txt' --single-version-externally-managed --compile --install-headers 'c:\users\emmsch001\appdata\local\programs\python\python37\Include\pymunk' Check the logs for full command output.
How can I fix/work around this?

building '_mysql' extension error: [WinError 2] The system cannot find the file specified

I have been trying to install mysqlclient to communicate with python but i always get this error below. I have tried installing from command prompt too but it says "module setup tools is not found"
can someone tell show me what's wrong? Thanks
I have been trying to install mysqlclient to communicate with python but i always get this error below. I have tried installing from command prompt too but it says "module setup tools is not found"
can someone tell show me what's wrong? Thanks
(venv) C:\Users\kesh\PycharmProjects\SplashSongs>pip3 install mysqlclient
Collecting mysqlclient
Using cached
https://files.pythonhosted.org/packages/ec
/fd/83329b9d3e14f7344d1cb31f128e6dbba70c5975c9e57896815dbb1988ad/
mysqlclient-1.3.13.tar.gz
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient ... error
Complete output from command
C:\Users\kesh\PycharmProjects\SplashSongs\venv\Scripts\python.exe -u
-c "import setuptools,
tokenize;__file__='C:\\Users\\kesh\\AppData\\Local\\Temp\\
pip-install-3qsuf31w\\mysqlclient\\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\kesh\AppData\Local\Temp\pip-record-6eq7cdv9\install-record.txt
--single-version-externally-managed --compile --install-headers \ Users\kesh\PycharmProjects\SplashSongs\venv\include\site\python3.5\mysqlclient:C:\Users\kesh\AppData\Local\Programs\Python\Python35\lib\distutils\dist.py:261:
UserWarning: Unknown distribution option:
'long_description_content_type' warnings.warn(msg)
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
copying _mysql_exceptions.py -> build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\compat.py -> build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\connections.py -> build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\converters.py -> build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\release.py -> build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\times.py -> build\lib.win-amd64-3.5\MySQLdb
creating build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-3.5\MySQLdb\constants
running build_ext
building '_mysql' extension
error: [WinError 2] The system cannot find the file specified
----------------------------------------
Command "C:\Users\kesh\PycharmProjects\SplashSongs\venv\Scripts\python.exe -u
-c "import setuptools,
tokenize;__file__='C:\\Users\\kesh\\AppData\\Local\\Temp\\pip-install-
3qsuf31w\\msqlclient\\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\kesh\ApData\Local\Temp\pip-
record-6eq7cdv9\install-record.txt --single-version-externally-managed --
compile --install-headers
C:\Users\kesh\PycharmProjects\SplashSongs\venv\include\site\python3.5\my
sqlclient" failed with error code 1 in C:\Users\kesh\AppData\Local\Temp\pip-
install-3qsuf31w\mysqlclient\
(venv) C:\Users\kesh\PycharmProjects\SplashSongs>pip3 install mysqlclient
Collecting mysqlclient
Using cached
https://files.pythonhosted.org/packages/ec
/fd/83329b9d3e14f7344d1cb31f128e6dbba70c5975c9e57896815dbb1988ad/
mysqlclient-1.3.13.tar.gz
Installing collected packages: mysqlclient
Running setup.py install for mysqlclient ... error
Complete output from command
C:\Users\kesh\PycharmProjects\SplashSongs\venv\Scripts\python.exe -u
-c "import setuptools,
tokenize;__file__='C:\\Users\\kesh\\AppData\\Local\\Temp\\
pip-install-3qsuf31w\\mysqlclient\\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\kesh\AppData\Local\Temp\pip-record-6eq7cdv9\install-record.txt
--single-version-externally-managed --compile --install-headers \ Users\kesh\PycharmProjects\SplashSongs\venv\include\site\python3.5\mysqlclient:C:\Users\kesh\AppData\Local\Programs\Python\Python35\lib\distutils\dist.py:261:
UserWarning: Unknown distribution option:
'long_description_content_type' warnings.warn(msg)
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.5
copying _mysql_exceptions.py -> build\lib.win-amd64-3.5
creating build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\__init__.py -> build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\compat.py -> build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\connections.py -> build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\converters.py -> build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\cursors.py -> build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\release.py -> build\lib.win-amd64-3.5\MySQLdb
copying MySQLdb\times.py -> build\lib.win-amd64-3.5\MySQLdb
creating build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\__init__.py -> build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\CLIENT.py -> build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\CR.py -> build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\ER.py -> build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\FIELD_TYPE.py -> build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\FLAG.py -> build\lib.win-amd64-3.5\MySQLdb\constants
copying MySQLdb\constants\REFRESH.py -> build\lib.win-amd64-3.5\MySQLdb\constants
running build_ext
building '_mysql' extension
error: [WinError 2] The system cannot find the file specified
----------------------------------------
Command "C:\Users\kesh\PycharmProjects\SplashSongs\venv\Scripts\python.exe -u
-c "import setuptools,
tokenize;__file__='C:\\Users\\kesh\\AppData\\Local\\Temp\\pip-install-
3qsuf31w\\msqlclient\\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\kesh\ApData\Local\Temp\pip-
record-6eq7cdv9\install-record.txt --single-version-externally-managed --
compile --install-headers
C:\Users\kesh\PycharmProjects\SplashSongs\venv\include\site\python3.5\my
sqlclient" failed with error code 1 in C:\Users\kesh\AppData\Local\Temp\pip-
install-3qsuf31w\mysqlclient\
Go to https://www.lfd.uci.edu/~gohlke/pythonlibs/#mysqlclient and download a precompiled mysqlclient library for your python version. For an example if you are using python 3.6 32bit version, download
mysqlclient‑1.3.13‑cp36‑cp36m‑win32.whl
Then from either command prompt or pycharm terminal(pycharm terminal if you want to install for the virtual environment of your project) execute
pip install "Path for the downloaded .whl file"
That should install mysqlclient without a problem.

build_ext not found whilst installing google-cloud-vision with pip on windows

As the title says, I'm getting an error whilst installing Google Cloud Vision on a Windows 10 machine running Python 3.8.
I've added python to my PATH and have also installed Build Tools for Visual Studio Code (read somewhere that this might help - it didn't).
Below are the commands that I have tried:
pip install google-cloud-vision
pip install google-cloud-vision --ignore-installed
The error I'm getting is:
ERROR: Command errored out with exit status 1:
command: 'c:\users\administrator\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\2\\pip-install-n38ejusk\\grpcio\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\2\\pip-install-n38ejusk\\grpcio\\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\Administrator\AppData\Local\Temp\2\pip-record-tnd8s2qv\install-record.txt' --single-version-externally-managed --compile
cwd: C:\Users\Administrator\AppData\Local\Temp\2\pip-install-n38ejusk\grpcio\
Complete output (62 lines):
Found cython-generated files...
running install
running build
running build_py
running build_project_metadata
creating python_build
creating python_build\lib.win-amd64-3.8
creating python_build\lib.win-amd64-3.8\grpc
copying src\python\grpcio\grpc\_auth.py -> python_build\lib.win-amd64-3.8\grpc
copying src\python\grpcio\grpc\_channel.py -> python_build\lib.win-amd64-3.8\grpc
copying src\python\grpcio\grpc\_common.py -> python_build\lib.win-amd64-3.8\grpc
copying src\python\grpcio\grpc\_compression.py -> python_build\lib.win-amd64-3.8\grpc
copying src\python\grpcio\grpc\_grpcio_metadata.py -> python_build\lib.win-amd64-3.8\grpc
copying src\python\grpcio\grpc\_interceptor.py -> python_build\lib.win-amd64-3.8\grpc
copying src\python\grpcio\grpc\_plugin_wrapping.py -> python_build\lib.win-amd64-3.8\grpc
copying src\python\grpcio\grpc\_server.py -> python_build\lib.win-amd64-3.8\grpc
copying src\python\grpcio\grpc\_utilities.py -> python_build\lib.win-amd64-3.8\grpc
copying src\python\grpcio\grpc\__init__.py -> python_build\lib.win-amd64-3.8\grpc
creating python_build\lib.win-amd64-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\implementations.py -> python_build\lib.win-amd64-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\interfaces.py -> python_build\lib.win-amd64-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\utilities.py -> python_build\lib.win-amd64-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\_client_adaptations.py -> python_build\lib.win-amd64-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\_metadata.py -> python_build\lib.win-amd64-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\_server_adaptations.py -> python_build\lib.win-amd64-3.8\grpc\beta
copying src\python\grpcio\grpc\beta\__init__.py -> python_build\lib.win-amd64-3.8\grpc\beta
creating python_build\lib.win-amd64-3.8\grpc\experimental
copying src\python\grpcio\grpc\experimental\gevent.py -> python_build\lib.win-amd64-3.8\grpc\experimental
copying src\python\grpcio\grpc\experimental\session_cache.py -> python_build\lib.win-amd64-3.8\grpc\experimental
copying src\python\grpcio\grpc\experimental\__init__.py -> python_build\lib.win-amd64-3.8\grpc\experimental
creating python_build\lib.win-amd64-3.8\grpc\framework
copying src\python\grpcio\grpc\framework\__init__.py -> python_build\lib.win-amd64-3.8\grpc\framework
creating python_build\lib.win-amd64-3.8\grpc\_cython
copying src\python\grpcio\grpc\_cython\__init__.py -> python_build\lib.win-amd64-3.8\grpc\_cython
creating python_build\lib.win-amd64-3.8\grpc\framework\common
copying src\python\grpcio\grpc\framework\common\cardinality.py -> python_build\lib.win-amd64-3.8\grpc\framework\common
copying src\python\grpcio\grpc\framework\common\style.py -> python_build\lib.win-amd64-3.8\grpc\framework\common
copying src\python\grpcio\grpc\framework\common\__init__.py -> python_build\lib.win-amd64-3.8\grpc\framework\common
creating python_build\lib.win-amd64-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\abandonment.py -> python_build\lib.win-amd64-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\callable_util.py -> python_build\lib.win-amd64-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\future.py -> python_build\lib.win-amd64-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\logging_pool.py -> python_build\lib.win-amd64-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\stream.py -> python_build\lib.win-amd64-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\stream_util.py -> python_build\lib.win-amd64-3.8\grpc\framework\foundation
copying src\python\grpcio\grpc\framework\foundation\__init__.py -> python_build\lib.win-amd64-3.8\grpc\framework\foundation
creating python_build\lib.win-amd64-3.8\grpc\framework\interfaces
copying src\python\grpcio\grpc\framework\interfaces\__init__.py -> python_build\lib.win-amd64-3.8\grpc\framework\interfaces
creating python_build\lib.win-amd64-3.8\grpc\framework\interfaces\base
copying src\python\grpcio\grpc\framework\interfaces\base\base.py -> python_build\lib.win-amd64-3.8\grpc\framework\interfaces\base
copying src\python\grpcio\grpc\framework\interfaces\base\utilities.py -> python_build\lib.win-amd64-3.8\grpc\framework\interfaces\base
copying src\python\grpcio\grpc\framework\interfaces\base\__init__.py -> python_build\lib.win-amd64-3.8\grpc\framework\interfaces\base
creating python_build\lib.win-amd64-3.8\grpc\framework\interfaces\face
copying src\python\grpcio\grpc\framework\interfaces\face\face.py -> python_build\lib.win-amd64-3.8\grpc\framework\interfaces\face
copying src\python\grpcio\grpc\framework\interfaces\face\utilities.py -> python_build\lib.win-amd64-3.8\grpc\framework\interfaces\face
copying src\python\grpcio\grpc\framework\interfaces\face\__init__.py -> python_build\lib.win-amd64-3.8\grpc\framework\interfaces\face
creating python_build\lib.win-amd64-3.8\grpc\_cython\_cygrpc
copying src\python\grpcio\grpc\_cython\_cygrpc\__init__.py -> python_build\lib.win-amd64-3.8\grpc\_cython\_cygrpc
creating python_build\lib.win-amd64-3.8\grpc\_cython\_credentials
copying src\python\grpcio\grpc\_cython\_credentials\roots.pem -> python_build\lib.win-amd64-3.8\grpc\_cython\_credentials
running build_ext
error: [WinError 2] The system cannot find the file specified
----------------------------------------
ERROR: Command errored out with exit status 1: 'c:\users\administrator\appdata\local\programs\python\python38\python.exe' -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\2\\pip-install-n38ejusk\\grpcio\\setup.py'"'"'; __file__='"'"'C:\\Users\\Administrator\\AppData\\Local\\Temp\\2\\pip-install-n38ejusk\\grpcio\\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\Administrator\AppData\Local\Temp\2\pip-record-tnd8s2qv\install-record.txt' --single-version-externally-managed --compile Check the logs for full command output.
Any help would be appreciated!
Unfortunately, we are not pre-compiling for 3.8 yet. If you can use Python 3.6 or 3.7, the problem should go away. https://pypi.org/project/grpcio/#files
I'm not recommending investigate the compilation of grpcio on Windows, because it is not easy to get it right.
-lidizheng

Categories