0

Using legacy 'setup.py install' for regex, since package 'wheel' is not installed.

Installing collected packages: regex, recognizers-text, recognizers-text-number, recognizers-text-number-with-unit, pytz, grapheme, datedelta, recognizers-text-date-time, recognizers-text-choice, babel, aiounittest, botbuilder-dialogs
    Running setup.py install for regex ... error
    ERROR: Command errored out with exit status 1:
     command: /var/www/demohealthcare/healthvenv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pbv6yc_z/regex_8c92c65304374a3d80811d6513387368/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pbv6yc_z/regex_8c92c65304374a3d80811d6513387368/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-9yb6vyvc/install-record.txt --single-version-externally-managed --compile --install-headers /var/www/demohealthcare/healthvenv/include/site/python3.6/regex
         cwd: /tmp/pip-install-pbv6yc_z/regex_8c92c65304374a3d80811d6513387368/
    Complete output (25 lines):
    BASE_DIR is /tmp/pip-install-pbv6yc_z/regex_8c92c65304374a3d80811d6513387368
    /var/www/demohealthcare/healthvenv/lib64/python3.6/site-packages/setuptools/dist.py:398: UserWarning: Normalizing '2019.08.19' to '2019.8.19'
      normalized_version,
    running install
    running build
    running build_py
    creating build
    creating build/lib.linux-x86_64-3.6
    creating build/lib.linux-x86_64-3.6/regex
    copying regex_3/regex/__init__.py -> build/lib.linux-x86_64-3.6/regex
    copying regex_3/regex/regex.py -> build/lib.linux-x86_64-3.6/regex
    copying regex_3/regex/_regex_core.py -> build/lib.linux-x86_64-3.6/regex
    creating build/lib.linux-x86_64-3.6/regex/test
    copying regex_3/regex/test/__init__.py -> build/lib.linux-x86_64-3.6/regex/test
    copying regex_3/regex/test/test_regex.py -> build/lib.linux-x86_64-3.6/regex/test
    running build_ext
    building 'regex._regex' extension
    creating build/temp.linux-x86_64-3.6
    creating build/temp.linux-x86_64-3.6/regex_3
    gcc -pthread -Wno-unused-result -Wsign-compare -DDYNAMIC_ANNOTATIONS_ENABLED=1 -DNDEBUG -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/var/www/demohealthcare/healthvenv/include -I/usr/include/python3.6m -c regex_3/_regex.c -o build/temp.linux-x86_64-3.6/regex_3/_regex.o
    regex_3/_regex.c:48:10: fatal error: Python.h: No such file or directory
     #include "Python.h"
              ^~~~~~~~~~
    compilation terminated.
    error: command 'gcc' failed with exit status 1
    ----------------------------------------
ERROR: Command errored out with exit status 1: /var/www/demohealthcare/healthvenv/bin/python3 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-pbv6yc_z/regex_8c92c65304374a3d80811d6513387368/setup.py'"'"'; __file__='"'"'/tmp/pip-install-pbv6yc_z/regex_8c92c65304374a3d80811d6513387368/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /tmp/pip-record-9yb6vyvc/install-record.txt --single-version-externally-managed --compile --install-headers /var/www/demohealthcare/healthvenv/include/site/python3.6/regex Check the logs for full command output.
Steven Kanberg
  • 5,678
  • 2
  • 13
  • 33
  • Hi -- Looks like there is similar SO question asked, please checkout these answers. [fatal error: Python.h: No such file or directory](https://stackoverflow.com/questions/21530577/fatal-error-python-h-no-such-file-or-directory?page=1&tab=oldest#tab-top) – Ram Fattah Jan 12 '22 at 00:27

0 Answers0