I'm trying to install on Centos7 the uwsgi so I can deploy a Python rest service on Centos7.
This is the guide that I have seen
Instal Flask Restful Service On Centos
now I receive this error when I try to install uwsgi:
Command "/home/admin60713620/Documents/PYTHON_REST_API/rest/restenv/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-oEZ7uf/uwsgi/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-vcgfSt-record/install-record.txt --single-version-externally-managed --compile --install-headers /home/admin60713620/Documents/PYTHON_REST_API/rest/restenv/include/site/python2.7/uwsgi" failed with error code 1 in /tmp/pip-build-oEZ7uf/uwsgi/
I was having the same issue and run this command
sudo apt-get install build-essential python-dev
If using python3
sudo apt-get install build-essential python3-dev
and everything works!
Hope this help you!
Related
When I install spacy with pip it download a bunch of files but at the end this error comes and spacy is not getting installed although setuptools is installed.
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-jugolqe4/murmurhash/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-record-fwk4l5m8/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-jugolqe4/murmurhash/
A lot of parts of spaCy are written in Cython for improved performance. Thus, in order to use spaCy library you need a C compiler to compile Cython code.
You could try running the following commands in your terminal and then retry installing spacy.
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install build-essential
gcc -v
make -v
I'm trying to get pip (3.6) to install the packages thrift-sasl, thrift-py and impyla, on CentOS 6, and I keep getting this error.
Command "/usr/bin/python3.6 -u -c "import setuptools, tokenize;file='/tmp/pip-build-rv4_laqv/thriftpy/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-hogvggj3-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-rv4_laqv/thriftpy/
Things I have tried
Updating pip
Installing/updating setuptools
yum install gcc-c++ python-devel.x86_64 cyrus-sasl-devel.x86_64
Any suggestions or insights?
Installation will endup with this message.
Command "/usr/bin/python3.4 -u -c "import setuptools, tokenize;file='/tmp/pip-nbderdof-build/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-p07ubkfd-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-nbderdof-build/
(myprojectenv) [anyuser#localhost myproject]$
Maybe you need to install python-devel package:
sudo yum install python-devel
I have been trying to install the Python bindings of jq on ubuntu using pip.
However, when I run the following command, it fails.
sudo pip install jq
This is the error message it get.
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-EmO25q/jq/setup.py';exec(compile(getattr(tokenize, 'open', open)
(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-RBT2h7-record/install-record.txt --single-version-externally-m
anaged --compile" failed with error code 1 in /tmp/pip-build-EmO25q/jq/
This gets compiled, you need to install the build dependencies.
apt-get install autoconf automake build-essential libtool python-dev
See the Pypi page for more info ... https://pypi.python.org/pypi/jq/0.1.6
When i try to install bcrypt, with python3 -m pip install bcrypt,
i get this :
`Command /usr/bin/python3 -c "import setuptools, tokenize;file='/tmp/pip-build-vhc0qtab/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-v9cb4je7-record/install-record.txt --single-version-externally-managed --compile --user failed with error code 1 in /tmp/pip-build-vhc0qtab/bcrypt
Storing debug log for failure in /home/vkristof/.pip/pip.log
The debug log:
http://pastebin.com/UEa3WEG3
one of the error messages states, that libffi is missing. on a debian-like system you could try $ sudo apt-get install libffi6 libffi-dev.