Hi it seems like I'm unable to install cymunk. I get a fatal error C1083: Cannot open include file: 'alloca.h' when trying to build wheel for cymunk.
C:\Users\Jessy\kivent\venv>pip install git+git://github.com/kivy/cymunk.git
Collecting git+git://github.com/kivy/cymunk.git
Cloning git://github.com/kivy/cymunk.git to c:\users\jessy\appdata\local\temp\pip-req-build-774s6m7_
Running command git clone --filter=blob:none --quiet git://github.com/kivy/cymunk.git 'C:\Users\Jessy\AppData\Local\Temp\pip-req-build-774s6m7_'
Resolved git://github.com/kivy/cymunk.git to commit 24845cc0834cd07b9495d06ef3873252237c6714
Preparing metadata (setup.py) ... done
Building wheels for collected packages: cymunk
Building wheel for cymunk (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [16 lines of output]
Using distutils
C:\Users\Jessy\AppData\Local\Programs\Python\Python310\lib\site-packages\Cython\Compiler\Main.py:369: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: C:\Users\Jessy\AppData\Local\Temp\pip-req-build-774s6m7_\cymunk\cymunk.pxd
tree = Parsing.p_module(s, pxd, full_module_name)
warning: cymunk\constraint.pxd:6:41: Declarations should not be declared inline.
warning: cymunk\space.pxd:23:4: 'cpTimestamp' redeclared
warning: cymunk\space.pxd:59:4: 'cpConstraintPreSolveFunc' redeclared
warning: cymunk\space.pxd:60:4: 'cpConstraintPostSolveFunc' redeclared
warning: cymunk\shape.pxi:204:86: local variable 'info' referenced before assignment
warning: cymunk\shape.pxi:205:54: local variable 'info' referenced before assignment
warning: cymunk\shape.pxi:205:62: local variable 'info' referenced before assignment
cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
cl : Command line warning D9002 : ignoring unknown option '-ffast-math'
cl : Command line warning D9002 : ignoring unknown option '-fPIC'
chipmunk.c
C:\Users\Jessy\AppData\Local\Temp\pip-req-build-774s6m7_\cymunk\Chipmunk-Physics\include\chipmunk\chipmunk.h(36): fatal error C1083: Cannot open include file: 'alloca.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cymunk
Running setup.py clean for cymunk
Failed to build cymunk
Installing collected packages: cymunk
Running setup.py install for cymunk ... error
error: subprocess-exited-with-error
× Running setup.py install for cymunk did not run successfully.
│ exit code: 1
╰─> [9 lines of output]
Using distutils
C:\Users\Jessy\AppData\Local\Programs\Python\Python310\lib\site-packages\setuptools\command\install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.
warnings.warn(
cl : Command line warning D9002 : ignoring unknown option '-std=gnu99'
cl : Command line warning D9002 : ignoring unknown option '-ffast-math'
cl : Command line warning D9002 : ignoring unknown option '-fPIC'
chipmunk.c
C:\Users\Jessy\AppData\Local\Temp\pip-req-build-774s6m7_\cymunk\Chipmunk-Physics\include\chipmunk\chipmunk.h(36): fatal error C1083: Cannot open include file: 'alloca.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> cymunk
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
I tried with 'pipwin' and 'python setup.py build --compiler=mingw32'
Related
I want to install pari-jupyter. I get the following error:
PARIKernel\kernel.c(679): fatal error C1083: Cannot open include file: 'pari/pari.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.34.31933\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pari-jupyter
Failed to build pari-jupyter
ERROR: Could not build wheels for pari-jupyter, which is required to install pyproject.toml-based projects
How can I find pari/pari.h, and tell the compiler its location?
TypeError: CCompiler_spawn() got an unexpected keyword argument 'env'
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
Encountered error while generating package metadata.
See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
I got the same error when using Python 3.10. Apache-Superset currently only supports Python 3.8 and 3.9: https://pypi.org/project/apache-superset/
This question already has answers here:
Error "Microsoft Visual C++ 14.0 is required (Unable to find vcvarsall.bat)"
(36 answers)
Error while installing lxml through pip: Microsoft Visual C++ 14.0 is required
(8 answers)
Pip error even Microsoft Visual C++ 14.0 is installed
(4 answers)
How to solve "error: Microsoft Visual C++ 14.0 or greater is required" when installing Python packages?
(9 answers)
Closed 12 months ago.
I could not install twint on command prompt. I tried with pip install twint and the following error message came up:
Building wheels for collected packages: cchardet
Building wheel for cchardet (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
cythonize: ['src/cchardet\\_cchardet.pyx']
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\cchardet
copying src\cchardet\version.py -> build\lib.win-amd64-3.10\cchardet
copying src\cchardet\__init__.py -> build\lib.win-amd64-3.10\cchardet
running build_ext
building 'cchardet._cchardet' 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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cchardet
Running setup.py clean for cchardet
Failed to build cchardet
Installing collected packages: cchardet, beautifulsoup4, aiohttp-socks, aiodns, twint
Running setup.py install for cchardet ... error
error: subprocess-exited-with-error
× Running setup.py install for cchardet did not run successfully.
│ exit code: 1
╰─> [12 lines of output]
cythonize: ['src/cchardet\\_cchardet.pyx']
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\cchardet
copying src\cchardet\version.py -> build\lib.win-amd64-3.10\cchardet
copying src\cchardet\__init__.py -> build\lib.win-amd64-3.10\cchardet
running build_ext
building 'cchardet._cchardet' 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/
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure
× Encountered error while trying to install package.
╰─> cchardet
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
C:\Users\Yannik>
I am just trying to install package 'spherical-geometry with pip but failed. My python version is 3.8 in Mac OS system. And the pip is installed by anaconda3. Below I show the primary reported error. I am wondering how to solve this.
(base) ➜ Applications pip install spherical-geometry
Collecting spherical-geometry
Using cached spherical_geometry-1.2.19.tar.gz (9.2 MB)
Installing build dependencies ... done
Building wheels for collected packages: spherical-geometry
Building wheel for spherical-geometry (PEP 517) ... error
ERROR: Command errored out with exit status 1:
In file included from libqd/src/dd_const.cpp:11:
In file included from libqd/include/qd/dd_real.h:32:
...
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:640:26: error: no template named 'numeric_limits'
bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:640:60: error: no template named 'numeric_limits'
bool _FloatBigger = (numeric_limits<_FloatT>::digits > numeric_limits<_IntT>::digits),
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:641:18: error: no template named 'numeric_limits'
int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:641:50: error: no template named 'numeric_limits'
int _Bits = (numeric_limits<_IntT>::digits - numeric_limits<_FloatT>::digits)>
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:646:17: error: no template named 'numeric_limits'
static_assert(numeric_limits<_FloatT>::radix == 2, "FloatT has incorrect radix");
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
/private/var/folders/77/s1_49xgj7bv4gxjwsbfgbh8m0000gn/T/pip-build-env-rucjcqmx/overlay/lib/python3.8/site-packages/setuptools/dist.py:642: UserWarning: Usage of dash-separated 'upload-dir' will not be supported in future versions. Please use the underscore name 'upload_dir' instead
warnings.warn(
/private/var/folders/77/s1_49xgj7bv4gxjwsbfgbh8m0000gn/T/pip-build-env-rucjcqmx/overlay/lib/python3.8/site-packages/setuptools/dist.py:642: UserWarning: Usage of dash-separated 'show-response' will not be supported in future versions. Please use the underscore name 'show_response' instead
warnings.warn(
error: command 'gcc' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for spherical-geometry
Failed to build spherical-geometry
ERROR: Could not build wheels for spherical-geometry which use PEP 517 and cannot be installed directly
websocket via gem install em-websocket. Got this error:
compiling binder.cpp
cc1plus: warning: command line option ‘-Wimplicit-int’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wdeclaration-after-statement’ is valid for C/ObjC but not for C++
cc1plus: warning: command line option ‘-Wimplicit-function-declaration’ is valid for C/ObjC but not for C++
In file included from binder.cpp:20:0:
project.h:25:20: fatal error: iostream: No such file or directory
compilation terminated.
Makefile:233: recipe for target 'binder.o' failed
make: *** [binder.o] Error 1
make failed, exit code 2
...
How to deal with this?
iostream was introduced in libstc++-6.Installing libstdc++6-4.4-dev by sudo apt-get install libstdc++6-4.4-dev. it will delete currently installed g++.Then run sudo apt-get install g++.This solved my problem.