I can't install the python snappy's library in virtual environment. This is the error:
Command /usr/bin/python -c "import setuptools,
tokenize;__file__='/tmp/pip_build_sebastianbaskovich/python-snappy
/setup.py';exec(compile(getattr(tokenize, 'open',
open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))"
install --record /tmp/pip-sW65K7-record/install-record.txt --single-
version-externally-managed --compile failed with error code 1 in
/tmp/pip_build_sebastianbaskovich/python-snappy
In order to install python-snappy you first need the snappy library (snappy-c.h ) on your computer for it to compile properly. Install Snappy library first and then try and install python-snappy and you should be good to go.
Related
I installed pip then I wanna install some packages for test,
It seems not work?
what's the problem?
which python
/usr/bin/python
which pip
/usr/local/bin/pip
sudo easy_install pip
pip install regex
error:
Command "/usr/bin/python -u -c "import setuptools, tokenize;__file__='/private/var/folders/k0/80ltmx5x61xgnp9ld643mdr80000gn/T/pip-build-YKBgHj/regex/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /var/folders/k0/80ltmx5x61xgnp9ld643mdr80000gn/T/pip-rQ9FJX-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/k0/80ltmx5x61xgnp9ld643mdr80000gn/T/pip-build-YKBgHj/regex/
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?
I try to use pip install psycopg2 on windows10 and python3.5, but it show me below error message. how can i fix it ?
Command
"d:\desktop\learn\python\webcatch\appserver\webcatch\scripts\python.exe
-u -c "import setuptools, tokenize;file='C:\Users\16022001\AppData\Local\Temp\pip-build-rsorislh\psycopg2\setup.py';exec(compile(getattr(tokenize,
'open', open)(file).read().replace('\r\n', '\n'), file,
'exec'))" install --record
C:\Users\16022001\AppData\Local\Temp\pip-kzsbvzx9-record\install-record.txt
--single-version-externally-managed --compile --install-headers d:\desktop\learn\python\webcatch\appserver\webcatch\include\site\python3.5\psycopg2"
failed with error code 1 in
C:\Users\16022001\AppData\Local\Temp\pip-build-rsorislh\psycopg2\
pip install psycopg this worked for me, don't mention version i.e (pip install psycopg2)
I have some problems while installing scikit-learn on Fedora 23 using pip
pip install scikit-learn
Here's what I get
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-MPbvR0/scikit-learn/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-k_kxgh-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-MPbvR0/scikit-learn
What may the problem be?
There is a way to get around the problem. Download and install Anaconda which is Python + 195 packages including scikit-learn.
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.