Pip thrift and impyla not installing on Linux - python

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?

Related

I am trying to install kivy but pip is giving me this error

Command "/usr/bin/python3 -u -c "import setuptools, tokenize;file='/tmp/pip-build-9rd60o0h/kivy/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-h2wevr4m-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 1 in /tmp/pip-build-9rd60o0h/kivy/
Error code 1 is "permission denied" - most likely, as you're on Ubuntu, I'd guess you're trying to install the module globally. Either
pip install --user kivy to install is into your user's local environment, or
sudo pip install kivy to install it globally, as root

How to install python packages correctly on Mac?

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 can not Install pyscopg2 with sudo yum install django pyscopg2. on centos7

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

pip install psycopg2 error

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)

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