Unable to install pymunk with pip - python

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?

Related

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

pip install cx_Freeze command not working

pip install cx_Freeze
Gives this error:-
Collecting cx_Freeze
Using cached https://files.pythonhosted.org/packages/5f/16/eab51d6571dfec2554248cb027c51babd04d97f594ab6359e0707361297d/cx_Freeze-5.1.1.tar.gz
Installing collected packages: cx-Freeze
Running setup.py install for cx-Freeze ... error
ERROR: Complete output from command 'c:\users\alok\appdata\local\programs\python\python37-32\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\Alok\\AppData\\Local\\Temp\\pip-install-y2cpdbhl\\cx-Freeze\\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\Alok\AppData\Local\Temp\pip-record-7yj276ze\install-record.txt' --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\common.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\dist.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\finder.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\freezer.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\hooks.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\macdist.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\main.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\setupwriter.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\windist.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\__init__.py -> build\lib.win32-3.7\cx_Freeze
creating build\lib.win32-3.7\cx_Freeze\initscripts
copying cx_Freeze\initscripts\Console.py -> build\lib.win32-3.7\cx_Freeze\initscripts
copying cx_Freeze\initscripts\ConsoleSetLibPath.py -> build\lib.win32-3.7\cx_Freeze\initscripts
copying cx_Freeze\initscripts\SharedLib.py -> build\lib.win32-3.7\cx_Freeze\initscripts
copying cx_Freeze\initscripts\SharedLibSource.py -> build\lib.win32-3.7\cx_Freeze\initscripts
copying cx_Freeze\initscripts\__startup__.py -> build\lib.win32-3.7\cx_Freeze\initscripts
creating build\lib.win32-3.7\cx_Freeze\samples
creating build\lib.win32-3.7\cx_Freeze\samples\advanced
copying cx_Freeze\samples\advanced\advanced_1.py -> build\lib.win32-3.7\cx_Freeze\samples\advanced
copying cx_Freeze\samples\advanced\advanced_2.py -> build\lib.win32-3.7\cx_Freeze\samples\advanced
copying cx_Freeze\samples\advanced\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\advanced
creating build\lib.win32-3.7\cx_Freeze\samples\asmodule
copying cx_Freeze\samples\asmodule\asmodule.py -> build\lib.win32-3.7\cx_Freeze\samples\asmodule
copying cx_Freeze\samples\asmodule\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\asmodule
creating build\lib.win32-3.7\cx_Freeze\samples\matplotlib
copying cx_Freeze\samples\matplotlib\matplotlib_eg.py -> build\lib.win32-3.7\cx_Freeze\samples\matplotlib
copying cx_Freeze\samples\matplotlib\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\matplotlib
creating build\lib.win32-3.7\cx_Freeze\samples\openpyxl
copying cx_Freeze\samples\openpyxl\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\openpyxl
copying cx_Freeze\samples\openpyxl\test_openpyxl.py -> build\lib.win32-3.7\cx_Freeze\samples\openpyxl
creating build\lib.win32-3.7\cx_Freeze\samples\PyQt4
copying cx_Freeze\samples\PyQt4\PyQt4app.py -> build\lib.win32-3.7\cx_Freeze\samples\PyQt4
copying cx_Freeze\samples\PyQt4\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\PyQt4
creating build\lib.win32-3.7\cx_Freeze\samples\PyQt5
copying cx_Freeze\samples\PyQt5\PyQt5app.py -> build\lib.win32-3.7\cx_Freeze\samples\PyQt5
copying cx_Freeze\samples\PyQt5\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\PyQt5
creating build\lib.win32-3.7\cx_Freeze\samples\relimport
copying cx_Freeze\samples\relimport\relimport.py -> build\lib.win32-3.7\cx_Freeze\samples\relimport
copying cx_Freeze\samples\relimport\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\relimport
creating build\lib.win32-3.7\cx_Freeze\samples\service
copying cx_Freeze\samples\service\Config.py -> build\lib.win32-3.7\cx_Freeze\samples\service
copying cx_Freeze\samples\service\ServiceHandler.py -> build\lib.win32-3.7\cx_Freeze\samples\service
copying cx_Freeze\samples\service\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\service
creating build\lib.win32-3.7\cx_Freeze\samples\simple
copying cx_Freeze\samples\simple\hello.py -> build\lib.win32-3.7\cx_Freeze\samples\simple
copying cx_Freeze\samples\simple\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\simple
creating build\lib.win32-3.7\cx_Freeze\samples\Tkinter
copying cx_Freeze\samples\Tkinter\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\Tkinter
copying cx_Freeze\samples\Tkinter\SimpleTkApp.py -> build\lib.win32-3.7\cx_Freeze\samples\Tkinter
creating build\lib.win32-3.7\cx_Freeze\samples\wx
copying cx_Freeze\samples\wx\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\wx
copying cx_Freeze\samples\wx\wxapp.py -> build\lib.win32-3.7\cx_Freeze\samples\wx
creating build\lib.win32-3.7\cx_Freeze\samples\zope
copying cx_Freeze\samples\zope\qotd.py -> build\lib.win32-3.7\cx_Freeze\samples\zope
copying cx_Freeze\samples\zope\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\zope
running build_ext
building 'cx_Freeze.util' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command "'c:\users\alok\appdata\local\programs\python\python3 error: Microsoft Visual C++ 14.0 is required. G;__file__='"'"'C:soft Visual C++ Build Tools": https://visualstudio.cpdbhl\\cx-Freezenloads/ open)(__file__); ---------------------------------------- ;f.close();exec(cERROR: Command "'c:\users\alok\appdata\local\prograrecord 'C:\Users\7-32\python.exe' -u -c 'import setuptools, tokenize\\Users\\Alok\\AppData\\Local\\Temp\\pip-install-y2\\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"',code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"')ompile(code, __file__, '"'"'exec'"'"'))' install --Alok\AppData\Local\Temp\pip-record-7yj276ze\installngle-version-externally-managed --compile" failed win C:\Users\Alok\AppData\Local\Temp\pip-install-y2c
pip install wheel
Then downloading the cx_Freeze for python3.7 for a 32 bit system
then in that path using cmd pip install cx_Freeze-5.1.1-cp37-cp37m-win32.whl
1.)pip install cx_Freeze
2.)pip install wheel
pip install cx_Freeze-5.1.1-cp37-cp37m-win32.whl
When i follow the link it leads to installing a .rar file when I try running the command pip install cx_Freeze then it gives the following error,
Running setup.py install for cx-Freeze ... error
ERROR: Complete output from command 'c:\users\alok\appdata\local\programs\python\python37-32\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\Alok\\AppData\\Local\\Temp\\pip-install-5ojtpx8i\\cx-Freeze\\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\Alok\AppData\Local\Temp\pip-record-9oe_iyi5\install-record.txt' --single-version-externally-managed --compile:
ERROR: running install
running build
running build_py
creating build
creating build\lib.win32-3.7
creating build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\common.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\dist.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\finder.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\freezer.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\hooks.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\macdist.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\main.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\setupwriter.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\windist.py -> build\lib.win32-3.7\cx_Freeze
copying cx_Freeze\__init__.py -> build\lib.win32-3.7\cx_Freeze
creating build\lib.win32-3.7\cx_Freeze\initscripts
copying cx_Freeze\initscripts\Console.py -> build\lib.win32-3.7\cx_Freeze\initscripts
copying cx_Freeze\initscripts\ConsoleSetLibPath.py -> build\lib.win32-3.7\cx_Freeze\initscripts
copying cx_Freeze\initscripts\SharedLib.py -> build\lib.win32-3.7\cx_Freeze\initscripts
copying cx_Freeze\initscripts\SharedLibSource.py -> build\lib.win32-3.7\cx_Freeze\initscripts
copying cx_Freeze\initscripts\__startup__.py -> build\lib.win32-3.7\cx_Freeze\initscripts
creating build\lib.win32-3.7\cx_Freeze\samples
creating build\lib.win32-3.7\cx_Freeze\samples\advanced
copying cx_Freeze\samples\advanced\advanced_1.py -> build\lib.win32-3.7\cx_Freeze\samples\advanced
copying cx_Freeze\samples\advanced\advanced_2.py -> build\lib.win32-3.7\cx_Freeze\samples\advanced
copying cx_Freeze\samples\advanced\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\advanced
creating build\lib.win32-3.7\cx_Freeze\samples\asmodule
copying cx_Freeze\samples\asmodule\asmodule.py -> build\lib.win32-3.7\cx_Freeze\samples\asmodule
copying cx_Freeze\samples\asmodule\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\asmodule
creating build\lib.win32-3.7\cx_Freeze\samples\matplotlib
copying cx_Freeze\samples\matplotlib\matplotlib_eg.py -> build\lib.win32-3.7\cx_Freeze\samples\matplotlib
copying cx_Freeze\samples\matplotlib\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\matplotlib
creating build\lib.win32-3.7\cx_Freeze\samples\openpyxl
copying cx_Freeze\samples\openpyxl\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\openpyxl
copying cx_Freeze\samples\openpyxl\test_openpyxl.py -> build\lib.win32-3.7\cx_Freeze\samples\openpyxl
creating build\lib.win32-3.7\cx_Freeze\samples\PyQt4
copying cx_Freeze\samples\PyQt4\PyQt4app.py -> build\lib.win32-3.7\cx_Freeze\samples\PyQt4
copying cx_Freeze\samples\PyQt4\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\PyQt4
creating build\lib.win32-3.7\cx_Freeze\samples\PyQt5
copying cx_Freeze\samples\PyQt5\PyQt5app.py -> build\lib.win32-3.7\cx_Freeze\samples\PyQt5
copying cx_Freeze\samples\PyQt5\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\PyQt5
creating build\lib.win32-3.7\cx_Freeze\samples\relimport
copying cx_Freeze\samples\relimport\relimport.py -> build\lib.win32-3.7\cx_Freeze\samples\relimport
copying cx_Freeze\samples\relimport\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\relimport
creating build\lib.win32-3.7\cx_Freeze\samples\service
copying cx_Freeze\samples\service\Config.py -> build\lib.win32-3.7\cx_Freeze\samples\service
copying cx_Freeze\samples\service\ServiceHandler.py -> build\lib.win32-3.7\cx_Freeze\samples\service
copying cx_Freeze\samples\service\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\service
creating build\lib.win32-3.7\cx_Freeze\samples\simple
copying cx_Freeze\samples\simple\hello.py -> build\lib.win32-3.7\cx_Freeze\samples\simple
copying cx_Freeze\samples\simple\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\simple
creating build\lib.win32-3.7\cx_Freeze\samples\Tkinter
copying cx_Freeze\samples\Tkinter\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\Tkinter
copying cx_Freeze\samples\Tkinter\SimpleTkApp.py -> build\lib.win32-3.7\cx_Freeze\samples\Tkinter
creating build\lib.win32-3.7\cx_Freeze\samples\wx
copying cx_Freeze\samples\wx\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\wx
copying cx_Freeze\samples\wx\wxapp.py -> build\lib.win32-3.7\cx_Freeze\samples\wx
creating build\lib.win32-3.7\cx_Freeze\samples\zope
copying cx_Freeze\samples\zope\qotd.py -> build\lib.win32-3.7\cx_Freeze\samples\zope
copying cx_Freeze\samples\zope\setup.py -> build\lib.win32-3.7\cx_Freeze\samples\zope
running build_ext
building 'cx_Freeze.util' extension
error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": https://visualstudio.microsoft.com/downloads/
----------------------------------------
ERROR: Command "'c:\users\alok\appdata\local\programs\python\python37-32\python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'C:\\Users\\Alok\\AppData\\Local\\Temp\\pip-install-5ojtpx8i\\cx-Freeze\\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\Alok\AppData\Local\Temp\pip-record-9oe_iyi5\install-record.txt' --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Alok\AppData\Local\Temp\pip-install-5ojtpx8i\cx-Freeze\
you don't have Microsoft Visual C++ 14.0 in your system. So first install this from official site - https://visualstudio.microsoft.com/downloads/
After that do below steps as -
pip install wheel
Then go to the following link to download the cx_Freeze wheel file according to you python version and windows version: https://www.lfd.uci.edu/~gohlke/pythonlibs/#cx_freeze
In your case what I can see versions as python - 3.7 and 32 bit windows system
For this you have to Download this .whl from above link -> cx_Freeze‑5.1.1‑cp37‑cp37m‑win32.whl
Then after download save that file to any folder and in command go to that folder do as -
pip install cx_Freeze‑5.1.1‑cp37‑cp37m‑win32.whl
I hope this will work for you.

Error in installing JPype1 in Python 3.7 on Mac OS 10.14.2

I am getting error while installing JPype1 in my system. I am using Python 3.7. JPype1 is required as dependency for Jaydebeapi.
pip install Jpype1
Following are the error message:
Collecting jpype1
Using cached
https://files.pythonhosted.org/packages/c4/4b/60a3e63d51714d4d7ef1b1efdf84315d118a0a80a5b085bb52a7e2428cdc/JPype1-0.6.3.tar.gz
Building wheels for collected packages: jpype1
Running setup.py bdist_wheel for jpype1 ... error
Complete output from command /Users/citius/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-install-1rreficl/jpype1/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 /private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-wheel-swsvni4l --python-tag cp36:
running bdist_wheel
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jcollection.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_classpath.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jio.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_pykeywords.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jproxy.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_gui.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_darwin.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/nio.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_cygwin.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_properties.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_refdaemon.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jboxed.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/JClassUtil.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jvmfinder.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/imports.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_core.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_linux.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jarray.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jobject.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jclass.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_windows.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jwrapper.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jexception.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/reflect.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jpackage.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
creating build/lib.macosx-10.7-x86_64-3.6/jpype/awt
copying jpype/awt/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpype/awt
creating build/lib.macosx-10.7-x86_64-3.6/jpype/awt/event
copying jpype/awt/event/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpype/awt/event
copying jpype/awt/event/WindowAdapter.py -> build/lib.macosx-10.7-x86_64-3.6/jpype/awt/event
creating build/lib.macosx-10.7-x86_64-3.6/jpypex
copying jpypex/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex
creating build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
copying jpypex/swing/AbstractAction.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
copying jpypex/swing/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
copying jpypex/swing/pyutils.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
running build_ext
/private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-install-1rreficl/jpype1/setup.py:173: FeatureNotice: Turned ON Numpy support for fast Java array access
FeatureNotice)
building '_jpype' extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/native
creating build/temp.macosx-10.7-x86_64-3.6/native/python
creating build/temp.macosx-10.7-x86_64-3.6/native/common
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/citius/anaconda3/include -arch x86_64 -I/Users/citius/anaconda3/include -arch x86_64 -DMACOSX=1 -DHAVE_NUMPY=1 -Inative/common/include -Inative/python/include -Inative/jni_include -I/Users/citius/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/Users/citius/anaconda3/include/python3.6m -c native/python/jpype_python.cpp -o build/temp.macosx-10.7-x86_64-3.6/native/python/jpype_python.o -ggdb
In file included from /Users/citius/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/syslimits.h:7:0,
from /Users/citius/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:34,
from /Users/citius/anaconda3/include/python3.6m/Python.h:11,
from native/python/include/jpype_python.h:23,
from native/python/jpype_python.cpp:19:
/Users/citius/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
#include_next /* recurse down to the real one */
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Failed building wheel for jpype1
Running setup.py clean for jpype1
Failed to build jpype1
Installing collected packages: jpype1
Running setup.py install for jpype1 ... error
Complete output from command /Users/citius/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-install-1rreficl/jpype1/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-record-3pg5yd08/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jcollection.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_classpath.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jio.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_pykeywords.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jproxy.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_gui.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_darwin.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/nio.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_cygwin.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_properties.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_refdaemon.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jboxed.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/JClassUtil.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jvmfinder.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/imports.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_core.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_linux.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jarray.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jobject.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jclass.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_windows.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jwrapper.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jexception.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/reflect.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
copying jpype/_jpackage.py -> build/lib.macosx-10.7-x86_64-3.6/jpype
creating build/lib.macosx-10.7-x86_64-3.6/jpype/awt
copying jpype/awt/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpype/awt
creating build/lib.macosx-10.7-x86_64-3.6/jpype/awt/event
copying jpype/awt/event/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpype/awt/event
copying jpype/awt/event/WindowAdapter.py -> build/lib.macosx-10.7-x86_64-3.6/jpype/awt/event
creating build/lib.macosx-10.7-x86_64-3.6/jpypex
copying jpypex/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex
creating build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
copying jpypex/swing/AbstractAction.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
copying jpypex/swing/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
copying jpypex/swing/pyutils.py -> build/lib.macosx-10.7-x86_64-3.6/jpypex/swing
running build_ext
/private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-install-1rreficl/jpype1/setup.py:173: FeatureNotice: Turned ON Numpy support for fast Java array access
FeatureNotice)
building '_jpype' extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/native
creating build/temp.macosx-10.7-x86_64-3.6/native/python
creating build/temp.macosx-10.7-x86_64-3.6/native/common
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -I/Users/citius/anaconda3/include -arch x86_64 -I/Users/citius/anaconda3/include -arch x86_64 -DMACOSX=1 -DHAVE_NUMPY=1 -Inative/common/include -Inative/python/include -Inative/jni_include -I/Users/citius/anaconda3/lib/python3.6/site-packages/numpy/core/include -I/Users/citius/anaconda3/include/python3.6m -c native/python/jpype_python.cpp -o build/temp.macosx-10.7-x86_64-3.6/native/python/jpype_python.o -ggdb
In file included from /Users/citius/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/syslimits.h:7:0,
from /Users/citius/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:34,
from /Users/citius/anaconda3/include/python3.6m/Python.h:11,
from native/python/include/jpype_python.h:23,
from native/python/jpype_python.cpp:19:
/Users/citius/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
#include_next /* recurse down to the real one */
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/Users/citius/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-install-1rreficl/jpype1/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-record-3pg5yd08/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/kw/ykkdj1vn7qj_2hms02xmtz6h0000gn/T/pip-install-1rreficl/jpype1/
First install gcc using conda
conda install gcc
Then use binary installation for jpype1. Install it from the conda-forge software channel.
conda install -c conda-forge jpype1
It worked for me.
It also works for Python2.7
For Amazon Linux or other RedHat-based:
dnf install redhat-rpm-config gcc-c++ python3-devel unixODBC-devel

Error while installing featuretools on mac

System specification:
MacOS Mojava
Version:10.14.1 (18B75)
I am trying to install featuretools on mac using pip.
Featuretools is a python library used to generate new set of features using the existing features.
command used: python -m pip install featuretools
But I'm getting this error:
error: command 'gcc' failed with exit status 1
Failed building wheel for psutil
Running setup.py clean for psutil
Failed to build psutil
Installing collected packages: psutil, distributed, featuretools
Found existing installation: psutil 5.4.5
Uninstalling psutil-5.4.5:
Successfully uninstalled psutil-5.4.5
Running setup.py install for psutil ... error
Complete output from command /Users/dsnanaware/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/r7/64j7w40s1fn8bmdkblq1pbym0000gn/T/pip-install-tpipbc01/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/r7/64j7w40s1fn8bmdkblq1pbym0000gn/T/pip-record-xb78kya7/install-record.txt --single-version-externally-managed --compile:
running install
running build
running build_py
creating build
creating build/lib.macosx-10.7-x86_64-3.6
creating build/lib.macosx-10.7-x86_64-3.6/psutil
copying psutil/_pswindows.py -> build/lib.macosx-10.7-x86_64-3.6/psutil
copying psutil/_common.py -> build/lib.macosx-10.7-x86_64-3.6/psutil
copying psutil/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/psutil
copying psutil/_psosx.py -> build/lib.macosx-10.7-x86_64-3.6/psutil
copying psutil/_psbsd.py -> build/lib.macosx-10.7-x86_64-3.6/psutil
copying psutil/_psaix.py -> build/lib.macosx-10.7-x86_64-3.6/psutil
copying psutil/_pslinux.py -> build/lib.macosx-10.7-x86_64-3.6/psutil
copying psutil/_compat.py -> build/lib.macosx-10.7-x86_64-3.6/psutil
copying psutil/_psposix.py -> build/lib.macosx-10.7-x86_64-3.6/psutil
copying psutil/_exceptions.py -> build/lib.macosx-10.7-x86_64-3.6/psutil
copying psutil/_pssunos.py -> build/lib.macosx-10.7-x86_64-3.6/psutil
creating build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_contracts.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_connections.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_unicode.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_misc.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_posix.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_linux.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_sunos.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/__init__.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_aix.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_process.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_bsd.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_system.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_osx.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_memory_leaks.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/test_windows.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
copying psutil/tests/__main__.py -> build/lib.macosx-10.7-x86_64-3.6/psutil/tests
running build_ext
building 'psutil._psutil_osx' extension
creating build/temp.macosx-10.7-x86_64-3.6
creating build/temp.macosx-10.7-x86_64-3.6/psutil
creating build/temp.macosx-10.7-x86_64-3.6/psutil/arch
creating build/temp.macosx-10.7-x86_64-3.6/psutil/arch/osx
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/dsnanaware/anaconda3/include -arch x86_64 -I/Users/dsnanaware/anaconda3/include -arch x86_64 -DPSUTIL_POSIX=1 -DPSUTIL_VERSION=548 -DPSUTIL_OSX=1 -I/Users/dsnanaware/anaconda3/include/python3.6m -c psutil/_psutil_common.c -o build/temp.macosx-10.7-x86_64-3.6/psutil/_psutil_common.o
In file included from /Users/dsnanaware/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/syslimits.h:7:0,
from /Users/dsnanaware/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:34,
from /Users/dsnanaware/anaconda3/include/python3.6m/Python.h:11,
from psutil/_psutil_common.c:9:
/Users/dsnanaware/anaconda3/lib/gcc/x86_64-apple-darwin11.4.2/4.8.5/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory
#include_next <limits.h> /* recurse down to the real one */
^
compilation terminated.
error: command 'gcc' failed with exit status 1
----------------------------------------
Rolling back uninstall of psutil
Command "/Users/dsnanaware/anaconda3/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/r7/64j7w40s1fn8bmdkblq1pbym0000gn/T/pip-install-tpipbc01/psutil/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /private/var/folders/r7/64j7w40s1fn8bmdkblq1pbym0000gn/T/pip-record-xb78kya7/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/r7/64j7w40s1fn8bmdkblq1pbym0000gn/T/pip-install-tpipbc01/psutil/
Does anyone know how to fix this error??
Thankyou

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