ujson Package Installation Error in Python - python

When I try to install ujson package in python 3.6 on Windows 10, (which is needed for binance-python library installation) I got this error:
C:\Users\MHT\python_projects\crypto\env\Scripts
(env) λ pip install ujson
Collecting ujson
Using cached ujson-4.0.2.tar.gz (7.1 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Building wheels for collected packages: ujson
Building wheel for ujson (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\users\mht\python_projects\crypto\env\scripts\python.exe' 'c:\users\mht\python_projects\crypto\env\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\MHT\AppData\Local\Temp\tmpfwaht9wj'
cwd: C:\Users\MHT\AppData\Local\Temp\pip-install-97ynb6ua\ujson_0cc2905684bb497985ff0e4ac258eafe
Complete output (16 lines):
running bdist_wheel
running build
running build_ext
building 'ujson' extension
creating build
creating build\temp.win32-3.6
creating build\temp.win32-3.6\Release
creating build\temp.win32-3.6\Release\deps
creating build\temp.win32-3.6\Release\deps\double-conversion
creating build\temp.win32-3.6\Release\deps\double-conversion\double-conversion
creating build\temp.win32-3.6\Release\lib
creating build\temp.win32-3.6\Release\python
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\bin\HostX86\x86\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./python -I./lib -I./deps/double-conversion/double-conversion -Ic:\users\mht\python_projects\crypto\env\include -Ic:\users\mht\appdata\local\programs\python\python36-32\include -Ic:\users\mht\appdata\local\programs\python\python36-32\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.28.29333\include" /EHsc /Tp./deps/double-conversion/double-conversion\bignum-dtoa.cc /Fobuild\temp.win32-3.6\Release\./deps/double-conversion/double-conversion\bignum-dtoa.obj -D_GNU_SOURCE
bignum-dtoa.cc
./deps/double-conversion/double-conversion\bignum-dtoa.cc(28): fatal error C1083: Cannot open include file: 'math.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for ujson
Failed to build ujson
ERROR: Could not build wheels for ujson which use PEP 517 and cannot be installed directly
How could I fix this?

Try to install Visual Studio, here: https://visualstudio.microsoft.com/. Often, packages depend on Visual Studio for C/C++ compilers.
It appears it terminates because running the below command:
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.28.29333\\bin\\HostX86\\x86\\cl.exe' failed with exit status 2
failed. Installing Visual Studio should fix this.

Related

Trying to install Yt-Dlp module but having problems with Brotli installation step

I'm trying to install the Yt-Dlp module for Python 3.11 but for some reason I get this error
Building wheels for collected packages: brotli
Building wheel for brotli (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [20 lines of output]
C:\Users\igor\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
warnings.warn(
running bdist_wheel
running build
running build_py
creating bin
creating bin\lib.win-amd64-cpython-311
copying python\brotli.py -> bin\lib.win-amd64-cpython-311
running build_ext
building '_brotli' extension
creating bin\temp.win-amd64-cpython-311
creating bin\temp.win-amd64-cpython-311\Release
creating bin\temp.win-amd64-cpython-311\Release\c
creating bin\temp.win-amd64-cpython-311\Release\c\common
creating bin\temp.win-amd64-cpython-311\Release\c\dec
creating bin\temp.win-amd64-cpython-311\Release\c\enc
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic/include -IC:\Users\igor\AppData\Local\Programs\Python\Python311\include -IC:\Users\igor\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" /Tcc/common/constants.c /Fobin\temp.win-amd64-cpython-311\Release\c/common/constants.obj
constants.c
C:\Users\igor\AppData\Local\Temp\pip-install-cplthpdp\brotli_bec0f5da12d0434ea2253cdadf0efb64\c\common\./platform.h(26): fatal error C1083: NÆo ‚ poss¡vel abrir arquivo incluir: 'string.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 brotli
Running setup.py clean for brotli
Failed to build brotli
Installing collected packages: brotli, websockets, yt-dlp
Running setup.py install for brotli ... error
error: subprocess-exited-with-error
× Running setup.py install for brotli did not run successfully.
│ exit code: 1
╰─> [22 lines of output]
C:\Users\igor\AppData\Local\Programs\Python\Python311\Lib\site-packages\setuptools\dist.py:771: UserWarning: Usage of dash-separated 'build-base' will not be supported in future versions. Please use the underscore name 'build_base' instead
warnings.warn(
running install
C:\Users\igor\AppData\Local\Programs\Python\Python311\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(
running build
running build_py
creating bin
creating bin\lib.win-amd64-cpython-311
copying python\brotli.py -> bin\lib.win-amd64-cpython-311
running build_ext
building '_brotli' extension
creating bin\temp.win-amd64-cpython-311
creating bin\temp.win-amd64-cpython-311\Release
creating bin\temp.win-amd64-cpython-311\Release\c
creating bin\temp.win-amd64-cpython-311\Release\c\common
creating bin\temp.win-amd64-cpython-311\Release\c\dec
creating bin\temp.win-amd64-cpython-311\Release\c\enc
"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ic/include -IC:\Users\igor\AppData\Local\Programs\Python\Python311\include -IC:\Users\igor\AppData\Local\Programs\Python\Python311\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Tools\MSVC\14.34.31933\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\VC\Auxiliary\VS\include" /Tcc/common/constants.c /Fobin\temp.win-amd64-cpython-311\Release\c/common/constants.obj
constants.c
C:\Users\igor\AppData\Local\Temp\pip-install-cplthpdp\brotli_bec0f5da12d0434ea2253cdadf0efb64\c\common\./platform.h(26): fatal error C1083: NÆo ‚ poss¡vel abrir arquivo incluir: 'string.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
I have already tried uninstalling and reinstalling the C++ Build Tools, resetting the PC, installing the Brotli package by itself but it still gives me this error, and not only I have no idea why, I cannot even comprehend error message. Can anyone help me?

can't install pyaudio python and PyCharm

When I'm trying tutorial from internet I got this
Microsoft Windows [Version 10.0.22000.739]
(c) Microsoft Corporation. All rights reserved.
C:\Users\User>pip3 install PyAudio-0.2.11-cp310-cp310-win_amd64.whl
Defaulting to user installation because normal site-packages is not writeable
WARNING: Requirement 'PyAudio-0.2.11-cp310-cp310-win_amd64.whl' looks like a filename, but the file does not exist
Processing c:\users\user\pyaudio-0.2.11-cp310-cp310-win_amd64.whl
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: 'C:\\Users\\User\\PyAudio-0.2.11-cp310-cp310-win_amd64.whl'
C:\Users\User>pip3 install pyaudio
Defaulting to user installation because normal site-packages is not writeable
Collecting pyaudio
Using cached PyAudio-0.2.11.tar.gz (37 kB)
Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyaudio
Building wheel for pyaudio (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
copying src\pyaudio.py -> build\lib.win-amd64-3.10
running build_ext
building '_portaudio' extension
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\src
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -IC:\Program Files\Python310\include -IC:\Program Files\Python310\Include /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.10\Release\src/_portaudiomodule.obj
error: command 'cl.exe' failed: None
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyaudio
Running setup.py clean for pyaudio
Failed to build pyaudio
Installing collected packages: pyaudio
Running setup.py install for pyaudio ... error
error: subprocess-exited-with-error
× Running setup.py install for pyaudio did not run successfully.
│ exit code: 1
╰─> [13 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
copying src\pyaudio.py -> build\lib.win-amd64-3.10
running build_ext
building '_portaudio' extension
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\src
cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -DMS_WIN64=1 -IC:\Program Files\Python310\include -IC:\Program Files\Python310\Include /Tcsrc/_portaudiomodule.c /Fobuild\temp.win-amd64-3.10\Release\src/_portaudiomodule.obj
error: command 'cl.exe' failed: None
[end of output]

cannot install annoy wheel

I have been trying to install the python package annoy but it always gives an error, I have tried different methods but they don't work.
I have even tried to install the module manually but it does not work either
My Code:
pip install annoy
Error:
Collecting annoy
Using cached annoy-1.17.0.tar.gz (646 kB)
Preparing metadata (setup.py): started
Preparing metadata (setup.py): finished with status 'done'
Building wheels for collected packages: annoy
Building wheel for annoy (setup.py): started
Building wheel for annoy (setup.py): finished with status 'error'
Running setup.py clean for annoy
Failed to build annoy
Installing collected packages: annoy
Running setup.py install for annoy: started
Running setup.py install for annoy: finished with status 'error'
error: subprocess-exited-with-error
python setup.py bdist_wheel did not run successfully.
exit code: 1
[18 lines of output]
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\annoy
copying annoy\__init__.py -> build\lib.win-amd64-3.10\annoy
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building 'annoy.annoylib' extension
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Tainu\AppData\Local\Programs\Python\Python310\include -IC:\Users\Tainu\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um /EHsc /Tpsrc/annoymodule.cc /Fobuild\temp.win-amd64-3.10\Release\src/annoymodule.obj -D_CRT_SECURE_NO_WARNINGS -DANNOYLIB_MULTITHREADED_BUILD
annoymodule.cc
C:\Users\Tainu\AppData\Local\Temp\pip-install-3by5ea7a\annoy_d20fa133de45438cb5f39d6b5b50b96b\src\annoylib.h(19): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\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 annoy
error: subprocess-exited-with-error
Running setup.py install for annoy did not run successfully.
exit code: 1
[18 lines of output]
running install
running build
running build_py
creating build
creating build\lib.win-amd64-3.10
creating build\lib.win-amd64-3.10\annoy
copying annoy\__init__.py -> build\lib.win-amd64-3.10\annoy
warning: build_py: byte-compiling is disabled, skipping.
running build_ext
building 'annoy.annoylib' extension
creating build\temp.win-amd64-3.10
creating build\temp.win-amd64-3.10\Release
creating build\temp.win-amd64-3.10\Release\src
C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\Users\Tainu\AppData\Local\Programs\Python\Python310\include -IC:\Users\Tainu\AppData\Local\Programs\Python\Python310\Include -IC:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Tools\MSVC\14.29.30133\include -IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um /EHsc /Tpsrc/annoymodule.cc /Fobuild\temp.win-amd64-3.10\Release\src/annoymodule.obj -D_CRT_SECURE_NO_WARNINGS -DANNOYLIB_MULTITHREADED_BUILD
annoymodule.cc
C:\Users\Tainu\AppData\Local\Temp\pip-install-3by5ea7a\annoy_d20fa133de45438cb5f39d6b5b50b96b\src\annoylib.h(19): fatal error C1083: Cannot open include file: 'stdio.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\VC\\Tools\\MSVC\\14.29.30133\\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.
annoy
note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
My python version is 3.10, Windows 11 64-bit
I am using Pycharm
any help would be welcome
Below command worked in my case.
pipwin install annoy
Try installing with conda.
A lot of libraries that require C/C++ code to be compiled as part of their build and installation can be finicky on windows machines.
https://anaconda.org/conda-forge/python-annoy
This article might help too
https://www.programmersought.com/article/95834605670/

ERROR: Could not build wheels for tulipy which use PEP 517 and cannot be installed directly

so I have checked every post that relates to this issue and I still can't seem to make this work. I am trying to install tulipy using pip on a Windows machine. I've installed numerous other pip based programs with no issues. I tried reinstalling VS Build Tools, but that doesn't seem to help either. I need tulipy for a project I'm working on, so I can't use any alternatives.
C:\Users\bette>pip install tulipy --user
Collecting tulipy
Using cached tulipy-0.4.0.tar.gz (110 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing wheel metadata ... done
Requirement already satisfied: numpy in c:\users\bette\appdata\roaming\python\python39\site-packages (from tulipy) (1.19.5)
Building wheels for collected packages: tulipy
Building wheel for tulipy (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: 'c:\python39\python.exe' 'C:\Users\bette\AppData\Roaming\Python\Python39\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\bette\AppData\Local\Temp\tmpuwzd3c74'
cwd: C:\Users\bette\AppData\Local\Temp\pip-install-gkcz217u\tulipy_8179e3516bd64c689a0168ed407c13fc
Complete output (27 lines):
running bdist_wheel
running build
running build_py
creating build
creating build\lib.win-amd64-3.9
creating build\lib.win-amd64-3.9\tulipy
copying tulipy\__init__.py -> build\lib.win-amd64-3.9\tulipy
running build_ext
skipping 'tulipy/lib\__init__.c' Cython extension (up-to-date)
building 'tulipy.lib' extension
creating build\temp.win-amd64-3.9
creating build\temp.win-amd64-3.9\Release
creating build\temp.win-amd64-3.9\Release\libindicators
creating build\temp.win-amd64-3.9\Release\tulipy
creating build\temp.win-amd64-3.9\Release\tulipy\lib
D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ilibindicators -Itulipy/lib -IC:\Users\bette\AppData\Local\Temp\pip-build-env-nl5462ni\overlay\Lib\site-packages\numpy\core\include -Ic:\python39\include -Ic:\python39\include -ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE -ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE -ID:\Windows Kits\10\include\10.0.17763.0\ucrt -ID:\Windows Kits\10\include\10.0.17763.0\shared -ID:\Windows Kits\10\include\10.0.17763.0\um -ID:\Windows Kits\10\include\10.0.17763.0\winrt /Tclibindicators/tiamalgamation.c /Fobuild\temp.win-amd64-3.9\Release\libindicators/tiamalgamation.obj
tiamalgamation.c
D:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\x86_amd64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -Ilibindicators -Itulipy/lib -IC:\Users\bette\AppData\Local\Temp\pip-build-env-nl5462ni\overlay\Lib\site-packages\numpy\core\include -Ic:\python39\include -Ic:\python39\include -ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE -ID:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE -ID:\Windows Kits\10\include\10.0.17763.0\ucrt -ID:\Windows Kits\10\include\10.0.17763.0\shared -ID:\Windows Kits\10\include\10.0.17763.0\um -ID:\Windows Kits\10\include\10.0.17763.0\winrt /Tctulipy/lib\__init__.c /Fobuild\temp.win-amd64-3.9\Release\tulipy/lib\__init__.obj
__init__.c
c:\users\bette\appdata\local\temp\pip-build-env-nl5462ni\overlay\lib\site-packages\numpy\core\include\numpy\npy_1_7_deprecated_api.h(14) : Warning Msg: Using deprecated NumPy API, disable it with #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
tulipy/lib\__init__.c(8102): error C2039: 'tp_print': is not a member of '_typeobject'
c:\python39\include\cpython/object.h(193): note: see declaration of '_typeobject'
tulipy/lib\__init__.c(10033): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
c:\python39\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length'
tulipy/lib\__init__.c(10049): warning C4996: '_PyUnicode_get_wstr_length': deprecated in 3.3
c:\python39\include\cpython/unicodeobject.h(446): note: see declaration of '_PyUnicode_get_wstr_length'
error: command 'D:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\cl.exe' failed with exit code 2
----------------------------------------
ERROR: Failed building wheel for tulipy
Failed to build tulipy
ERROR: Could not build wheels for tulipy which use PEP 517 and cannot be installed directly
This might be old, but if anyone is looking how to install tulipy.
It's in https://pypi.org/project/newtulipy/.
pip install newtulipy
Try this:
pip install pip==18.1
if that doesn't work try this:
pip install --upgrade pip setuptools wheel
If that doesn't work try updating Microsoft visual studio to a current version
if that doesn't work...
I found the solution. I was using Python 3.9 and that was incompatible with tulipy. When I installed Python 3.7.6 it worked like a charm.
The latest supported version is up to python3.7, if your python version is higher, it is not supported.
You can download whl file of tulipy form here.
Then use pip install tulipy-0.4.0-cp37-cp37m-win_amd64.whl to install.

Error while installing Rasa on windows 10 [duplicate]

I`m trying to install RASA framework on my Windows laptop using Poetry and build from source. Using pip wont help me as i was never able to install Tensorflow and it comes along with RASA.
What i have done already:
$ curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
$ git clone https://github.com/RasaHQ/rasa.git
$ cd rasa
$ poetry install
When the installation reach the point to install ujson this happens and the installation stops:
Collecting ujson
Using cached ujson-2.0.3.tar.gz (7.1 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing wheel metadata: started
Preparing wheel metadata: finished with status 'done'
Building wheels for collected packages: ujson
Building wheel for ujson (PEP 517): started
Building wheel for ujson (PEP 517): finished with status 'error'
ERROR: Command errored out with exit status 1:
command: 'c:\users\claudiu\appdata\local\programs\python\python38\python.exe' 'c:\users\claudiu\appdata\local\programs\python\python38\lib\site-packages\pip\_vendor\pep517\_in_process.py' build_wheel 'C:\Users\claudiu\AppData\Local\Temp\tmp3514zx41'
cwd: C:\Users\claudiu\AppData\Local\Temp\pip-install-2qy6btub\ujson
Complete output (16 lines):
running bdist_wheel
running build
running build_ext
building 'ujson' extension
creating build
creating build\temp.win-amd64-3.8
creating build\temp.win-amd64-3.8\Release
creating build\temp.win-amd64-3.8\Release\deps
creating build\temp.win-amd64-3.8\Release\deps\double-conversion
creating build\temp.win-amd64-3.8\Release\deps\double-conversion\double-conversion
creating build\temp.win-amd64-3.8\Release\lib
creating build\temp.win-amd64-3.8\Release\python
C:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -I./python -I./lib -I./deps/double-conversion/double-conversion -Ic:\users\claudiu\appdata\local\programs\python\python38\include -Ic:\users\claudiu\appdata\local\programs\python\python38\include "-IC:\Program Files (x86)\Microsoft Visual Studio\2017\BuildTools\VC\Tools\MSVC\14.16.27023\include" /EHsc /Tp./deps/double-conversion/double-conversion\bignum-dtoa.cc /Fobuild\temp.win-amd64-3.8\Release\./deps/double-conversion/double-conversion\bignum-dtoa.obj -D_GNU_SOURCE
bignum-dtoa.cc
./deps/double-conversion/double-conversion\bignum-dtoa.cc(28): fatal error C1083: Cannot open include file: 'math.h': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2017\\BuildTools\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x64\\cl.exe' failed with exit status 2
----------------------------------------
ERROR: Failed building wheel for ujson
Failed to build ujson
ERROR: Could not build wheels for ujson which use PEP 517 and cannot be installed directly
Probably I can could simply install Anaconda and get it done that way (tensorflow worked this way), however the project I want to build needs to be able to run outside of Anaconda at any given time.
Can anyone help me please?
By the way, i already installed latest Microsoft Visual C++ and build tools.
there may be two issue in window
if bit issue if you are installing in machine 32bit inplace of 64bit use this
https://rasa.com/docs/rasa/user-guide/installation/#step-by-step-installation-guide
ujson compatibility issue discussed here : https://github.com/ultrajson/ultrajson/issues/369
download your whl file from: https://www.lfd.uci.edu/~gohlke/pythonlibs/#ujson
a)pip install ujson-1.35-cp37-cp37m-win_amd64.whl
b)pip install rasa
Try uninstalling the current version of ujson
conda uninstall ujson
and try installing the ujson - 1.35
conda install ujson==1.35

Categories

Resources