Difficulties in installing pari-jupyter kernel - installation

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?

Related

Failed building wheel for cymunk

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'

What is causing this emscripten build to fail?

I am using the following cmd to build a wasm using emscripten:
npm run build
It gets so far through before failing during the configure:
configure: make -DCMAKE_TOOLCHAIN_FILE=/usr/share/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/node;--experimental-wasm-threads
make: invalid option -- 'D'
make: invalid option -- 'D'
Producing a final error:
This program built for x86_64-pc-linux-gnu
Report bugs to <bug-make#gnu.org>
emcmake: error: 'make -DCMAKE_TOOLCHAIN_FILE=/usr/share/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/node;--experimental-wasm-threads' failed (returned 2)
make: *** [Makefile:84: build/popt/.libs/libpopt.a] Error 1
What is going wrong?
Update using cmake instead of make produces this error:
configure: cmake -DCMAKE_TOOLCHAIN_FILE=/home/user1/Downloads/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/home/user1/Downloads/emsdk/node/14.18.2_64bit/bin/node;--experimental-wasm-threads
CMake Warning:
No source or binary directory provided. Both will be assumed to be the same as the current working directory, but note that this warning will become a fatal error in future CMake releases.
CMake Error: The source directory "/home/user1/Downloads/test1.js-master/build/popt" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
emcmake: error: 'cmake -DCMAKE_TOOLCHAIN_FILE=/home/user1/Downloads/emsdk/upstream/emscripten/cmake/Modules/Platform/Emscripten.cmake -DCMAKE_CROSSCOMPILING_EMULATOR=/home/user1/Downloads/emsdk/node/14.18.2_64bit/bin/node;--experimental-wasm-threads' failed (returned 1)
make: *** [Makefile:84: build/popt/.libs/libpopt.a] Error 1

Failed to install Twint on Windows [duplicate]

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>

Cython installation (python -m pip install kivy)

How to solve these error :
c:\users\home pc\appdata\local\temp\pip-build-ficc_3vk\kivy\kivy\graphics\gl_redirect.h(8): fatal error C1083: Cannot open include file: 'GL/glew.h': No such file or directory
error: command 'C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\cl.exe' failed with exit status 2

Boost - Cannot open include file: 'ctype.h'

I'm installing Boost 1.57.0 through the VS 2015 CTP6 Command Prompt, and I'm at the Boost.Build compile stage, but I get many of the below errors when running tools\build\bootstrap.bat:
e:\boost_1_57_0\tools\build\src\engine\jam.h(34): fatal error C1083: Cannot open include file: 'ctype.h': No such file or directory

Resources