pip install python-twitter Error - python

After making sure that pip is installed, I tried installing the twitter package using pip install python-twitter in the terminal but i get this error:
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/private/var/folders/d1/49j6jy0d7hd_5cb6__cqwzhw0000gn/T/pip-build-5dzoDc/oauthlib/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/d1/49j6jy0d7hd_5cb6__cqwzhw0000gn/T/pip-GuXf_v-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/d1/49j6jy0d7hd_5cb6__cqwzhw0000gn/T/pip-build-5dzoDc/oauthlib/
It's worth noting I have Python 3.6 installed on a Mac, apart from the default 2.7.
The code also ends with this "error: could not create '/Library/Python/2.7/site-packages/oauthlib': Permission denied"

Related

Can't install dlib

Hi I'm trying to install dlib in VSCode, with pip install dlib, but it gave me this error. Wondering if anyone can help
----------------------------------------
Command "c:\users\admin\documents\python\pyai3.6\scripts\python.exe -u -c "import setuptools, tokenize;file='C:\Users\Admin\AppData\Local\Temp\pip-install-j42ksv_7\dlib\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\Admin\AppData\Local\Temp\pip-record-y1xi59yt\install-record.txt --single-version-externally-managed --compile
--install-headers c:\users\admin\documents\python\pyai3.6\include\site\python3.6\dlib" failed with error code 1 in C:\Users\Admin\AppData\Local\Temp\pip-install-j42ksv_7\dlib\
I didn't realize I installed the 32-bit version of python instead of 64-bit. I just need to download the 64-bit version and run that.

Error 1 while installing pip package (pycrypto)

I've been trying to install pycrypto. After getting this error, I tried to uninstall python 3.7 and install 3.6 as specified by a thread somewhere. This didn't make it any better. Please let me know how to resolve this. I'm on Windows 7, 64 bit, Python 3.6.
----------------------------------------
Command "c:\users\admin\appdata\local\programs\python\python36\python.exe -u -c
"import setuptools, tokenize;__file__='C:\\Users\\Admin\\AppData\\Local\\Temp\\p
ip-install-lm9pf3lz\\pycrypto\\setup.py';f=getattr(tokenize, 'open', open)(__fil
e__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__,
'exec'))" install --record C:\Users\Admin\AppData\Local\Temp\pip-record-0pd9vdl0
\install-record.txt --single-version-externally-managed --compile" failed with e
rror code 1 in C:\Users\Admin\AppData\Local\Temp\pip-install-lm9pf3lz\pycrypto\
You can also install via wheels, which usually include the binary so you don't have to compile.
https://github.com/sfbahr/PyCrypto-Wheels

Error Installing SciPy

I have a windows computer and I tried installing SciPy in the Command Prompt using pip. "Pip install SciPy" this worked for other functions that I have installed; however, for this one it gave me an error. Any help would be great
Below is the Error Code:
Command
"c:\users\wdley\appdata\local\programs\python\python36-32\python.exe
-u -c "import setuptools, tokenize;file='C:\Users\wdley\AppData\Local\Temp\pip-build-c0h_k6mh\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\wdley\AppData\Local\Temp\pip-0i8tdreh-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in C:\Users\wdley\AppData\Local\Temp\pip-build-c0h_k6mh\SciPY\

Error when installing 'pycryptodome'

Whenever I install the package, I get this string out:-
Command "/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python -u -c "import setuptools, tokenize;file='/private/var/folders/l8/nrwgdgr96v33vfcd95r2yl3m0000gp/T/pip-build-AJpKPV/pycryptodomex/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /var/folders/l8/nrwgdgr96v33vfcd95r2yl3m0000gp/T/pip-GEiSB1-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /private/var/folders/l8/nrwgdgr96v33vfcd95r2yl3m0000gp/T/pip-build-AJpKPV/pycryptodomex/
Can anyone help?
Have you tried to upgrade pip first?
pip install --upgrade pip
And then install the pycryptodome package.

Error installing tables via pip

I'm tying to install tables as follows (I have no sudo permissions):
pip install --user tables
And I get the following error:
Command /usr/bin/python -c "import setuptools, tokenize;__file__='/tmp/pip-build-pWg1M_/tables/setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-mOibUT-record/install-record.txt --single-version-externally-managed --compile --user failed with error code 1 in /tmp/pip-build-pWg1M_/tables Storing debug log for failure in /home/hudson/pg/fkgm22/.pip/pip.log
I can install other packages with this method, but not tables... any idea?
Thanks
You can check the log pip has mentioned at /home/hudson/pg/fkgm22/.pip/pip.log to see what went wrong. I guess you will get a much more detailed error message which you can try to analyse.

Categories