Trying to install bcrypt & command line throwing errors - pip

I am running ubuntu 14.04. I open the commanding and use the following command...
pip install bcrypt
I get the following error...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_alopex/bcrypt/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-VGb_HL-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_alopex/bcrypt
Storing debug log for failure in /tmp/tmpOURwCc
If you would like the debug log, ask and I will provide (it is super long).
What can I do to make this work?

You can install bcrypt with apt-get:
apt-get install bcrypt

Related

Problem installing "fastai" on macOS 10.15

When running pip3 install fastai I get the following error:
ERROR: Command errored out with exit status 1: /Library/Frameworks/Python.framework/Versions/3.8/bin/python3.8 -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/private/var/folders/9v/_09ftt2n0bv9sthtfh2j5gp80000gn/T/pip-install-zdk93g56/pynvx/setup.py'"'"'; __file__='"'"'/private/var/folders/9v/_09ftt2n0bv9sthtfh2j5gp80000gn/T/pip-install-zdk93g56/pynvx/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record /private/var/folders/9v/_09ftt2n0bv9sthtfh2j5gp80000gn/T/pip-record-7y_ev9f3/install-record.txt --single-version-externally-managed --compile --install-headers /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pynvx
Do you have any idea what the problem is?
There is another error saying I have to install CMake but I already installed it.
I do not know if this is your problem (I'm a bit of a novice with this stuff), but I also was trying to install fastai with python 3.8 on macOS 10.15 and it failed on pynvx compilation.
I was able to get fastai to install, by ignoring its dependencies (and therefore pynvx), but was still able to successfully execute the libraries that required fastai. I did this:
pip install --no-deps fastai
and then ran my scripts. Can't say I understand why this works, but in the hopes that it does for you, I'm responding.

Error code (exit code 1) when installing netfilterqueue on macOS

When I try to install the module netfilterqueue for python via pip, I get the error:
"Command
"/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
-u -c "import setuptools, tokenize;file='/private/tmp/pip-install-Ut3XcJ/netfilterqueue/setup.py';f=getattr(tokenize,
'open', open)(file);code=f.read().replace('\r\n',
'\n');f.close();exec(compile(code, file, 'exec'))" install
--record /private/tmp/pip-record-teUDXs/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/tmp/pip-install-Ut3XcJ/netfilterqueue/"
I installed the module scapy without any problems, so I'm confused why netfilterqueue isn't installing. I'm currently using macOS High Sierra.
According to these issue on their Github page, it is not supported on macOS.
https://github.com/kti/python-netfilterqueue/issues/14:
libnetfilterqueue is a Linux-only feature, so you won't be able to
install python-netfilterqueue on Mac OS.
https://github.com/kti/python-netfilterqueue/issues/2:
Sorry, python-netfilterqueue will not work on Mac because nfqueue is Linux-only: http://www.netfilter.org/projects/libnetfilter_queue/index.html
error code 1 means operation not permitted, so it is a problem of authorization.
Try with sudo before the command:
sudo pip install python-netfilterqueue

Can't install Scipy properly

All!
I've bumped into a problem when installing scipy.
Command
"C:\Users\jcajandi\AppData\Local\Continuum\Anaconda\envs\py35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\jcajandi\\AppData\\Local\\Temp\\pip-build-805uir10\\scipy\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\jcajandi\AppData\Local\Temp\pip-54j3kyss-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\jcajandi\AppData\Local\Temp\pip-build-805uir10\scipy\
I can't understand this. What should I do to complete the installation?
I've found that conda install scipy does the trick but will cause problems in importing numpy. Need to put 'r' before the file paths in the _config.py file.

Error installing scipy using pip on Windows 10 32 bit

Installing scipy using pip gives me following error.
Command "c:\python27\python.exe -u -c "import setuptools, tokenize;file='c:\users\arun\appdata\local\temp\pip-build-nlwjdr\scipy\setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record c:\users\arun\appdata\local\temp\pip-5qc2vr-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in c:\users\arun\appdata\local\temp\pip-build-nlwjdr\scipy\
Tried cloning the scipy from github and running setup command. No luck.
python setup.py install
UPDATE: Installed Windows binary available at this link and it worked
http://sourceforge.net/projects/scipy/files/scipy/0.11.0/scipy-0.11.0-win32-superpack-python2.7.exe/download

Errors when pip install psycopg2 to virtualenv

I have created virtual environment
leo#kodar:/var/www/python$ mkvirtualenv -p /var/www/python/3.5.0/bin/python3 --no-site-packages env350_185
and trying to install psycopg2 to it.
pip3 install psycopg2
This gives me a big log with errors. Here is the resume string of output log:
Command /var/www/.virtualenvs/env350_185/bin/python3 -c "import setuptools, tokenize;__file__='/tmp/pip-build-xibdmand/psycopg2/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-gtvfmn3f-record/install-record.txt --single-version-externally-managed --compile --install-headers /var/www/.virtualenvs/env350_185/include/site/python3.5 failed with error code 1 in /tmp/pip-build-xibdmand/psycopg2
When I try to do the same with virtual environment created with system version of Python3
mkvirtualenv -p /usr/bin/python3 --no-site-packages env_sys
it gives success.
What could the problem be? Other packages like Django 1.8.5 can be installed correctly. I have also tested it with python 3.4.3 from custom folder and get the same error. Only system python3 (3.4.3) works.
Full pip error log is here: https://gist.github.com/leoKiddy/25beaa96c67b2cfa2263

Resources