pip install pandas error - python

Hi all i typed pip install pandas but i kept getting this error.
Cleaning up...
Command C:\Python27\python.exe -c "import setuptools, tokenize;__file__='c:\\use
rs\\huihui\\appdata\\local\\temp\\pip_build_HuiHui\\pandas\\setup.py';exec(compi
le(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __fil
e__, 'exec'))" install --record c:\users\huihui\appdata\local\temp\pip-ecokb6-re
cord\install-record.txt --single-version-externally-managed --compile failed wit
h error code 1 in c:\users\huihui\appdata\local\temp\pip_build_HuiHui\pandas
Storing debug log for failure in C:\Users\HuiHui\pip\pip.log
can anyone shed some light on this?

pip will try to install from source and I deduce from the C: that you are on windows - as such you probably don't have the compiler(s) needed to build pandas. You should download install the appropriate windows installer from https://pypi.python.org/pypi/pandas instead.

Related

Installing Scipy for Windows

I am trying to install Scipy on my computer. I did it by using the command pip install Scipy. (pip & numpy are up-to-date and I am using Python 3.6) I also tried it with Pycharm, but it didn't worked either.
I always do get this Error:
Command
"c:\users***\appdata\local\programs\python\python36\python.exe -u -c
"import setuptools,
tokenize;file='C:\Users\***\AppData\Local\Temp\pip-build-x3s21920\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***\AppData\Local\Temp\pip-gr9ppj_q-record\install-record.txt
--single-version-externally-managed --compile" failed with error code 1 in C:\Users***\AppData\Local\Temp\pip-build-x3s21920\scipy\
Does anyone has an idea of what I can do?
Try to install it from the following binaries
http://www.lfd.uci.edu/~gohlke/pythonlibs/
These are unofficial precompiled binaries

Scrapy Installation throwing error

While installing Scrapy in Windows 10 through command prompt I get this message at the end. Please tell me what could have possibly gone wrong or how do I overcome it.
[WinError 2] The system cannot find the file specified
----------------------------------------
Command "c:\users\sarwar\appdata\local\programs\python\python35\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Sarwar\\AppData\\Local\\Temp\\pip-build-gigbscvh\\Twisted\\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\Sarwar\AppData\Local\Temp\pip-xo9y3e03-record\install-record.txt --single-version-externally-managed --compile" failed with error code 1 in C:\Users\Sarwar\AppData\Local\Temp\pip-build-gigbscvh\Twisted\
There are some issues with pip installation of scrapy in windows platform. I would suggest you to use Anaconda to install scrapy and use it. Anaconda comes with may predefined packages which are required by many other packages. Anaconda has always worked like a charm to me while working on python.

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)

Problems with installing scikit-learn on Fedora

I have some problems while installing scikit-learn on Fedora 23 using pip
pip install scikit-learn
Here's what I get
Command "/usr/bin/python -u -c "import setuptools, tokenize;file='/tmp/pip-build-MPbvR0/scikit-learn/setup.py';exec(compile(getattr(tokenize, 'open', open)(file).read().replace('\r\n', '\n'), file, 'exec'))" install --record /tmp/pip-k_kxgh-record/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-build-MPbvR0/scikit-learn
What may the problem be?
There is a way to get around the problem. Download and install Anaconda which is Python + 195 packages including scikit-learn.

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