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

problem in pip3 install tronapi #82

Open
mahdilou99 opened this issue Jan 6, 2021 · 10 comments
Open

problem in pip3 install tronapi #82

mahdilou99 opened this issue Jan 6, 2021 · 10 comments

Comments

@mahdilou99
Copy link

hi
when i run pip3 install tronapi i have this error

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-sazbbhmf/cytoolz/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-4at3hdbj-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-sazbbhmf/cytoolz/

what is problem ?

@mahdilou99
Copy link
Author

building 'cytoolz.dicttoolz' extension
creating build/temp.linux-x86_64-3.6
creating build/temp.linux-x86_64-3.6/cytoolz
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python3.6m -c cytoolz/dicttoolz.c -o build/temp.linux-x86_64-3.6/cytoolz/dicttoolz.o
cytoolz/dicttoolz.c:17:20: fatal error: Python.h: No such file or directory
#include "Python.h"
^
compilation terminated.
error: command 'gcc' failed with exit status 1

----------------------------------------

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-586ukv17/cytoolz/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-ouf9ljji-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-586ukv17/cytoolz/

@elaheh4
Copy link

elaheh4 commented Jan 14, 2021

i have this error too
do you find a solution ?

@ansmirnov
Copy link
Contributor

ansmirnov commented Jan 26, 2021

Do you have the Python header files installed?

Try running the command (for CentOS):

yum install python-devel

Or for Debian/Ubuntu:

apt-get install python-dev

@mahdilou99
Copy link
Author

@ansmirnov
CentOS Linux 8 - AppStream 0.0 B/s | 0 B 00:00
Errors during downloading metadata for repository 'appstream':

@ansmirnov
Copy link
Contributor

@mahdilou99

It looks like a network problem. DNS is not configured correctly.

@mahdilou99
Copy link
Author

Loaded plugins: fastestmirror, universal-hooks
Loading mirror speeds from cached hostfile
epel/x86_64/metalink | 16 kB 00:00

  • EA4: 93.115.203.100
  • cpanel-addons-production-feed: 93.115.203.100
  • cpanel-plugins: 93.115.203.100
  • base: centosmirror.netcup.net
  • epel: ftp.plusline.net
  • extras: mirror.checkdomain.de
  • updates: mirror.checkdomain.de
    EA4 | 2.9 kB 00:00
    cpanel-addons-production-feed | 2.9 kB 00:00
    cpanel-plugins | 2.9 kB 00:00
    base | 3.6 kB 00:00
    epel | 4.7 kB 00:00
    extras | 2.9 kB 00:00
    mysql-connectors-community | 2.6 kB 00:00
    mysql-tools-community | 2.6 kB 00:00
    mysql57-community | 2.6 kB 00:00
    updates | 2.9 kB 00:00
    (1/2): epel/x86_64/updateinfo | 1.0 MB 00:00
    (2/2): epel/x86_64/primary_db | 6.9 MB 00:00
    Package python-devel-2.7.5-90.el7.x86_64 already installed and latest version
    Nothing to do
    @ansmirnov

@ansmirnov
Copy link
Contributor

ansmirnov commented Jan 29, 2021

You have installed python-devel version 2.7 but you are using pip version 3.6.

Try run the following command and install the correct version of python-devel.

yum search python-devel

@mahdilou99
Copy link
Author

@ansmirnov thanks
yum install python3-devel
worked and install good

@serderovsh
Copy link
Contributor

Not enough time, work with the library, we will soon restore work

@sap2me
Copy link

sap2me commented May 3, 2022

If sudo apt-get install python3-dev does not solved this problem you can try sudo apt-get install build-essential it helped me.

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

5 participants