Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"python setup.py build" fatal error #617

Open
Sohagh1 opened this issue Sep 16, 2021 · 3 comments
Open

"python setup.py build" fatal error #617

Sohagh1 opened this issue Sep 16, 2021 · 3 comments

Comments

@Sohagh1
Copy link

Sohagh1 commented Sep 16, 2021

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

@vido89
Copy link

vido89 commented Nov 20, 2021

sudo apt-get install python-dev

@Hironotori
Copy link

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

@sirius-parallax
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants