bash on windows 10 error installing shodan - bash

I have setup bash on windows 10.
Now I am trying to install shodan.
When I run pip install shodan I get error at the end as
copying and adjusting bin/shodan -> build/scripts-2.7
changing mode of build/scripts-2.7/shodan from 666 to 777
running install_lib
creating /usr/local/lib/python2.7/dist-packages/shodan
error: could not create '/usr/local/lib/python2.7/dist-packages/shodan': Permission denied
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip_build_subodh/shodan/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-RXaSEq-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /tmp/pip_build_subodh/shodan
Storing debug log for failure in /home/subodh/.pip/pip.log
subodh#ILPT224:~$

Related

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

Error installing pillow on Mac OS X El Capitan:

During installation of Pillow library I had this error and I can't solve. How can I do it?
I executed:
sudo pip install pillow
The error is:
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/distutils/command/build_ext.py", line 337, in run
self.build_extensions()
File "/private/var/folders/tj/cm2crntx36s3stmy1sytp_rh0000gn/T/pip_build_Joan/Pillow/setup.py", line 512, in build_extensions
' using --disable-%s, aborting' % (f, f))
ValueError: jpeg is required unless explicitly disabled using --disable-jpeg, aborting
----------------------------------------
Cleaning up...
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/private/var/folders/tj/cm2crntx36s3stmy1sytp_rh0000gn/T/pip_build_Joan/Pillow/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /var/folders/tj/cm2crntx36s3stmy1sytp_rh0000gn/T/pip-Q1zgvI-record/install-record.txt --single-version-externally-managed --compile failed with error code 1 in /private/var/folders/tj/cm2crntx36s3stmy1sytp_rh0000gn/T/pip_build_Joan/Pillow
Storing debug log for failure in /var/folders/tj/cm2crntx36s3stmy1sytp_rh0000gn/T/tmpKTHfju
I installed with this flag and it works, with this option is not possible use jpeg files:
sudo pip install pillow --global-option="build_ext" --global-option="--disable-jpeg"

Trying to install bcrypt & command line throwing errors

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

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