Python3 can't install bcrypt - python

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.

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

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?

Uwsgi install error Centos7

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!

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

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