spacy is not getting installed - python

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

Related

Pip thrift and impyla not installing on Linux

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?

Having trouble installing Python bindings of jq on ubuntu linux

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

Pillow instillation field with python3.2 django1.8

I'm working with a django project and now I want to add an image field, django asked me to install Pillow with the command "pip install Pillow",
thie problem is when I run this command, and this one also "sudo install Pillow" I get the message:
gcc: error: build/temp.linux-x86_64-3.2/libImaging/BoxBlur.o: No such file or directory
error: command 'gcc' failed with exit status 1
----------------------------------------
Command "/usr/bin/python3.2 -c "import setuptools, tokenize;__file__='/tmp/pip-build-otvko5/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-5430vf-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-otvko5/Pillow
I have tried all the ways that I found on the internet as well as the other ways to install Pillow such as easy_install, but each time I get a new problem.
Try to run the below commands in your linux
sudo apt-get update
sudo apt-get install python-dev
sudo apt-get install libevent-dev
Try this:
sudo apt-get install python-pil

Python3 can't install bcrypt

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.

Fail to install objccheckstyle using pip in Mac OS X

I'm trying to install objccheckstyle with this command:
sudo pip install objccheckstyle
But it fails after it says
Running setup.py install for lxml
and I get this error:
Command "/usr/bin/python -c "import setuptools, tokenize;__file__='/private/tmp/pip-build-DsaKIL/lxml/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-CFc6EG-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-build-DsaKIL/lxml
I also tried sudo pip install lxml, but it looks like it fails when tries to import libxml:
#include "libxml/xmlversion.h"
I don't find libxml with pip install. What could I be missing?
Thanks
Updating to the latest Xcode's command line tools solved the problem.

Categories

Resources