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/
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?
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'
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
I have a similar issue to this question PyTables does not seem to acknowledge hdf5 though it is evidently installed. Here is a slightly abbreviated error message from pip.
(And I'm going to ramble a bit more just because I get the annoying "this is mostly code" warning.)
pip install --upgrade h5py
Requirement already up-to-date: h5py in /Library/Python/2.7/site-packages
Cleaning up...
$ pip install --upgrade tables
Downloading/unpacking tables
Downloading tables-3.1.1.tar.gz (6.7MB): 6.7MB downloaded
ld: library not found for -lhdf5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
* Using Python 2.7.5 (default, Mar 9 2014, 22:15:05)
* Found numpy 1.9.0 package installed.
* Found numexpr 2.4 package installed.
* Found Cython 0.21 package installed.
ld: library not found for -lhdf5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
.. ERROR:: Could not find a local HDF5 installation.
You may need to explicitly state where your local HDF5 headers and
library can be found by setting the ``HDF5_DIR`` environment
variable or by using the ``--hdf5`` command-line option.
Complete output from command python setup.py egg_info:
/var/folders/0w/y_9w4kq53pqfgrc72bb7cml40000gn/T/H5closekvR8zE.c:1:1: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
ld: library not found for -lhdf5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
* Using Python 2.7.5 (default, Mar 9 2014, 22:15:05)
* Found numpy 1.9.0 package installed.
* Found numexpr 2.4 package installed.
* Found Cython 0.21 package installed.
ld: library not found for -lhdf5
clang: error: linker command failed with exit code 1 (use -v to see invocation)
.. ERROR:: Could not find a local HDF5 installation.
You may need to explicitly state where your local HDF5 headers and
library can be found by setting the ``HDF5_DIR`` environment
variable or by using the ``--hdf5`` command-line option.