I am getting an Error while installing rasa x using pip pip version- 20.1.1 python version - 3.6 OS: ubuntu 20.04
ERROR: Failed building wheel for ujson.
Building wheels for collected packages: ujson Building wheel for ujson (setup.py) … error ERROR: Command errored out with exit status 1: command: /home/vitwit/teja/machine_learning_projects/rasa/venv/bin/python -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-4l9hduo1/ujson/setup.py’"’"’; file=’"’"’/tmp/pip-install-4l9hduo1/ujson/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 /tmp/pip-wheel-pder3p70 cwd: /tmp/pip-install-4l9hduo1/ujson/ Complete output (15 lines): running bdist_wheel running build running build_ext building ‘ujson’ extension creating build creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/python creating build/temp.linux-x86_64-3.6/lib x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.6-_AWkrw/python3.6-3.6.11=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./python -I./lib -I/home/vitwit/teja/machine_learning_projects/rasa/venv/include -I/usr/include/python3.6m -c ./python/ujson.c -o build/temp.linux-x86_64-3.6/./python/ujson.o -D_GNU_SOURCE In file included from ./python/ujson.c:39: ./python/py_defines.h:39:10: fatal error: Python.h: No such file or directory 39 | #include <Python.h> | ^~~~~~~~~~ compilation terminated. error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1
ERROR: Failed building wheel for ujson Running setup.py clean for ujson Failed to build ujson Installing collected packages: ujson, rasa-x Attempting uninstall: ujson Found existing installation: ujson 2.0.3 Uninstalling ujson-2.0.3: Successfully uninstalled ujson-2.0.3 Running setup.py install for ujson … error ERROR: Command errored out with exit status 1: command: /home/vitwit/teja/machine_learning_projects/rasa/venv/bin/python -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-4l9hduo1/ujson/setup.py’"’"’; file=’"’"’/tmp/pip-install-4l9hduo1/ujson/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-cnluj4rh/install-record.txt --single-version-externally-managed --compile --install-headers /home/vitwit/teja/machine_learning_projects/rasa/venv/include/site/python3.6/ujson cwd: /tmp/pip-install-4l9hduo1/ujson/ Complete output (15 lines): running install running build running build_ext building ‘ujson’ extension creating build creating build/temp.linux-x86_64-3.6 creating build/temp.linux-x86_64-3.6/python creating build/temp.linux-x86_64-3.6/lib x86_64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fdebug-prefix-map=/build/python3.6-_AWkrw/python3.6-3.6.11=. -specs=/usr/share/dpkg/no-pie-compile.specs -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./python -I./lib -I/home/vitwit/teja/machine_learning_projects/rasa/venv/include -I/usr/include/python3.6m -c ./python/ujson.c -o build/temp.linux-x86_64-3.6/./python/ujson.o -D_GNU_SOURCE In file included from ./python/ujson.c:39: ./python/py_defines.h:39:10: fatal error: Python.h: No such file or directory 39 | #include <Python.h> | ^~~~~~~~~~ compilation terminated. error: command ‘x86_64-linux-gnu-gcc’ failed with exit status 1 ---------------------------------------- Rolling back uninstall of ujson Moving to /home/vitwit/teja/machine_learning_projects/rasa/venv/lib/python3.6/site-packages/ujson-2.0.3.dist-info/ from /home/vitwit/teja/machine_learning_projects/rasa/venv/lib/python3.6/site-packages/~json-2.0.3.dist-info Moving to /home/vitwit/teja/machine_learning_projects/rasa/venv/lib/python3.6/site-packages/ujson.cpython-36m-x86_64-linux-gnu.so from /tmp/pip-uninstall-l2b8_10y/ujson.cpython-36m-x86_64-linux-gnu.so ERROR: Command errored out with exit status 1: /home/vitwit/teja/machine_learning_projects/rasa/venv/bin/python -u -c ‘import sys, setuptools, tokenize; sys.argv[0] = ‘"’"’/tmp/pip-install-4l9hduo1/ujson/setup.py’"’"’; file=’"’"’/tmp/pip-install-4l9hduo1/ujson/setup.py’"’"’;f=getattr(tokenize, ‘"’"‘open’"’"’, open)(file);code=f.read().replace(’"’"’\r\n’"’"’, ‘"’"’\n’"’"’);f.close();exec(compile(code, file, ‘"’"‘exec’"’"’))’ install --record /tmp/pip-record-cnluj4rh/install-record.txt --single-version-externally-managed --compile --install-headers /home/vitwit/teja/machine_learning_projects/rasa/venv/include/site/python3.6/ujson Check the logs for full command output.