I am trying to install this software https://github.com/phoenixding/tbsp/ but it needs python-dev. However, I don't have root permission
I have tried some ways including create virtualenv but there is not specific answer how to install this python-dev.
My Linux system is RedHat
Here is the code:
python setup.py install --user
Here is the error
pyBigWig.c:1:20: fatal error: Python.h: No such file or directory
#include <Python.h>
^
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1
Related
I am trying to execute a file as shown on this website,
http://cython.readthedocs.io/en/latest/src/tutorial/cython_tutorial.html
I have saved my file with .pyx extension, made the setup.py file and ran python setup.py build_ext --inplace command. So earlier I was getting error: command 'gcc' failed: No such file or directory and then I installed the package as suggested here Error: command 'gcc' failed: No such file or directory I added the C:\users\name\mingw\bin in my environment variable as suggested MinGW: "gcc is not recognized as an internal or external command".
Still, when I am typing gcc on cmd it is showing 'gcc' is not recognized as an internal or external command,operable program or batch file.
So, I am confused. I also went into mingw\bin and then I run python setup.py build_ext --inplace but then I get command 'gcc.exe' failed with exit status 1.
I am stuck on this. Please help as this is my first time to use Cython.
Im attempting to install python-saml onto the latest Amazon Linux for Elasticbeanstalk (64bit Amazon Linux 2016.09 v2.3.3 running Python 2.7)
When it attempts to install dm.xmlsec.binding it fails with
Running setup.py (path:/tmp/pip-build-5dg8_B/dm.xmlsec.binding/setup.py) egg_info for package dm.xmlsec.binding
Running command python setup.py egg_info
Complete output from command python setup.py egg_info:
{standard input}: Assembler messages:
{standard input}:26237: Warning: end of file not at end of a line; newline inserted
{standard input}:26953: Error: unknown pseudo-op: `.l'
{standard input}: Error: open CFI at the end of file; missing .cfi_endproc directive
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugzilla.redhat.com/bugzilla> for instructions.
Building lxml version 3.7.3.
Building without Cython.
Using build configuration of libxslt 1.1.28
Building against libxml2/libxslt in the following directory: /usr/lib64
Compile failed: command 'gcc' failed with exit status 1
No issues on Ubuntu 16.04
upgrading lxml fixed the issue
sudo pip install lxml --upgrade
sudo easy_install lxml
Searching for lxml
Reading https://pypi.python.org/simple/lxml/
Best match: lxml 3.6.4
Downloading https://pypi.python.org/packages/4f/3f/cf6daac551fc36cddafa1a71ed48ea5fd642e5feabd3a0d83b8c3dfd0cb4/lxml-3.6.4.tar.gz#md5=6dd7314233029d9dab0156e7b1c7830b
Processing lxml-3.6.4.tar.gz
Writing /tmp/easy_install-w86uerbh/lxml-3.6.4/setup.cfg
Running lxml-3.6.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-w86uerbh/lxml-3.6.4/egg-dist-tmp-smgpuu2j
Building lxml version 3.6.4.
Building without Cython.
Using build configuration of libxslt 1.1.28
src/lxml/lxml.etree.c:83:20: fatal error: Python.h: No such file or directory
compilation terminated.
Compile failed: command 'x86_64-linux-gnu-gcc' failed with exit status 1
/tmp/easy_install-w86uerbh/lxml-3.6.4/temp/xmlXPathInitmvs80t9r.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
main (int argc, char **argv) {
^
error: Setup script exited with error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
So how can i install lxml lib? I've tried pip, but there is the same finish.
Try to install the following packages:
sudo apt-get install libxml2-dev libxslt1-dev python-dev
If this does not work, make sure that it is not a problem of memory, if so you will need to increase your machine memory.
Just had to add more memory to the instance in order to finish the lxml compilation
I tried to install glove_python package (https://github.com/maciejkula/glove-python) and I keep getting the same error like this question.
I tried using the mingw32 compiler, and I got the following error.
glove/glove_cython.c:262:17: fatal error: omp.h: No such file or directory
compilation terminated.
error: command 'C:\\Anaconda2\\Scripts\\gcc.bat' failed with exit status 1
I even tried using TDM but again I'm getting the following error.
gcc: error: libgomp.spec: No such file or directory
error: command 'c:\\TDM-GCC-64\\bin\\gcc.exe' failed with exit status 1
Similar to this question, I'm having trouble installing bcrypt under Cygwin, and receiving this error:
Downloading/unpacking bcrypt
Downloading bcrypt-1.0.2.tar.gz (40kB): 40kB downloaded
Running setup.py (path:/tmp/pip_build_Chris/bcrypt/setup.py) egg_info for package bcrypt
c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
...
distutils.errors.DistutilsError: Setup script exited with error: command 'gcc' failed with exit status 1
Complete output from command python setup.py egg_info:
c/_cffi_backend.c:13:17: fatal error: ffi.h: No such file or directory
#include <ffi.h>
^
compilation terminated.
The libffi-devel package is installed, and I've also tried using the --global-option='-I/lib/libffi-3.0.13/include' argument to tell pip exactly where the ffi.h file is on my system.
I was able to build/install this implementation from source under Cygwin: https://bitbucket.org/alexandrul/py-bcrypt/overview
I met the same problem.
Fixed the problem by:
cp /usr/lib/libffi-3.0.13/include/*.h /usr/include