Pyrit icon indicating copy to clipboard operation
Pyrit copied to clipboard

"python setup.py build" fatal error

Open Sohagh1 opened this issue 4 years ago • 3 comments

running build running build_py running build_ext building 'cpyrit._cpyrit_cpu' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-vgIf7a/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.5.1" -maes -mpclmul cpyrit/_cpyrit_cpu.c:32:10: fatal error: Python.h: No such file or directory 32 | #include <Python.h> | ^~~~~~~~~~ compilation terminated. Failed to build; Compiling without AES-NI building 'cpyrit._cpyrit_cpu' extension x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -ffile-prefix-map=/build/python2.7-vgIf7a/python2.7-2.7.18=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c cpyrit/_cpyrit_cpu.c -o build/temp.linux-x86_64-2.7/cpyrit/_cpyrit_cpu.o -Wall -fno-strict-aliasing -DVERSION="0.5.1" cpyrit/_cpyrit_cpu.c:32:10: fatal error: Python.h: No such file or directory 32 | #include <Python.h> | ^~~~~~~~~~ compilation terminated. error: command 'x86_64-linux-gnu-gcc' failed with exit status 1

Sohagh1 avatar Sep 16 '21 19:09 Sohagh1

sudo apt-get install python-dev

vido89 avatar Nov 20 '21 01:11 vido89

sudo apt-get установить python-dev

Hi I am a Ukrainian speaking user and when installing this package I get the following error

========================Original: Чтение списков пакетов… Готово Построение дерева зависимостей… Готово Чтение информации о состоянии… Готово
Пакет python-dev недоступен, но упомянут в списке зависимостей другого пакета. Это может означать, что пакет отсутствует, устарел или доступен из источников, не упомянутых в sources.list Однако следующие пакеты могут его заменить: python2

E: Для пакета «python-dev» не найден кандидат на установку

======================Translate: Reading Package Lists... Done Building the dependency tree… Done Reading Status Information… Done The python-dev package is not available but is listed in another dependency list package. This may mean that the package is missing, out of date, or available from sources not mentioned in sources.list However, the following packages can replace it: python2

E: No installation candidate found for package 'python-dev'

I also tried to install Python2-dev and here is the error

=======================Original: Чтение списков пакетов… Готово Построение дерева зависимостей… Готово Чтение информации о состоянии… Готово
E: Невозможно найти пакет python2-dev

=================Translate: Reading Package Lists... Done Building the dependency tree… Done Reading Status Information… Done E: Unable to find package python2-dev

I really hope you can help me Thank you

Hironotori avatar Nov 29 '22 11:11 Hironotori

sudo apt-get установить python-dev

Hi I am a Ukrainian speaking user and when installing this package I get the following error

========================Original: Чтение списков пакетов… Готово Построение дерева зависимостей… Готово Чтение информации о состоянии… Готово Пакет python-dev недоступен, но упомянут в списке зависимостей другого пакета. Это может означать, что пакет отсутствует, устарел или доступен из источников, не упомянутых в sources.list Однако следующие пакеты могут его заменить: python2

E: Для пакета «python-dev» не найден кандидат на установку

======================Translate: Reading Package Lists... Done Building the dependency tree… Done Reading Status Information… Done The python-dev package is not available but is listed in another dependency list package. This may mean that the package is missing, out of date, or available from sources not mentioned in sources.list However, the following packages can replace it: python2

E: No installation candidate found for package 'python-dev'

I also tried to install Python2-dev and here is the error

=======================Original: Чтение списков пакетов… Готово Построение дерева зависимостей… Готово Чтение информации о состоянии… Готово E: Невозможно найти пакет python2-dev

=================Translate: Reading Package Lists... Done Building the dependency tree… Done Reading Status Information… Done E: Unable to find package python2-dev

I really hope you can help me Thank you

Привет. Ну как получилось у тебя? Попробуй поставь пакет python-dev-is-python3

sirius-parallax avatar Oct 17 '23 13:10 sirius-parallax