python - how to install panda using easy_install? -


i using python 2.7.8 in windows 8 , on cmd wrote easy_install pandas. after processing gave me error , asked me download vcpython27.

on cmd:

c:\python27\scripts>easy_install.exe pandas searching pandas best match: pandas 0.16.2 processing pandas-0.16.2-py2.7-win32.egg pandas 0.16.2 active version in easy-install.pth  using c:\python27\lib\site-packages\pandas-0.16.2-py2.7-win32.egg processing dependencies pandas searching numpy>=1.7.0 reading https://pypi.python.org/simple/numpy/ best match: numpy 1.9.2 downloading https://pypi.python.org/packages/source/n/numpy/numpy-1.9.2.zip#md5= e80c19d2fb25af576460bb7dac31c59a processing numpy-1.9.2.zip writing c:\users\dell\appdata\local\temp\easy_install-ifrvr4\numpy-1.9.2\setup.c fg running numpy-1.9.2\setup.py -q bdist_egg --dist-dir c:\users\dell\appdata\local \temp\easy_install-ifrvr4\numpy-1.9.2\egg-dist-tmp-1tqap5 running numpy source directory. non-existing path in 'numpy\\distutils': 'site.cfg' non-existing path in 'numpy\\f2py': 'docs' non-existing path in 'numpy\\f2py': 'f2py.1' c:\users\dell\appdata\local\temp\easy_install-ifrvr4\numpy-1.9.2\numpy\distutils \system_info.py:1603: userwarning:     atlas (http://math-atlas.sourceforge.net/) libraries not found.     directories search libraries can specified in     numpy/distutils/site.cfg file (section [atlas]) or setting     atlas environment variable.   warnings.warn(atlasnotfounderror.__doc__) c:\users\dell\appdata\local\temp\easy_install-ifrvr4\numpy-1.9.2\numpy\distutils \system_info.py:1612: userwarning:     blas (http://www.netlib.org/blas/) libraries not found.     directories search libraries can specified in     numpy/distutils/site.cfg file (section [blas]) or setting     blas environment variable.   warnings.warn(blasnotfounderror.__doc__) c:\users\dell\appdata\local\temp\easy_install-ifrvr4\numpy-1.9.2\numpy\distutils \system_info.py:1615: userwarning:     blas (http://www.netlib.org/blas/) sources not found.     directories search sources can specified in     numpy/distutils/site.cfg file (section [blas_src]) or setting     blas_src environment variable.   warnings.warn(blassrcnotfounderror.__doc__) non-existing path in 'numpy\\lib': 'benchmarks' c:\users\dell\appdata\local\temp\easy_install-ifrvr4\numpy-1.9.2\numpy\distutils \system_info.py:1505: userwarning:     atlas (http://math-atlas.sourceforge.net/) libraries not found.     directories search libraries can specified in     numpy/distutils/site.cfg file (section [atlas]) or setting     atlas environment variable.   warnings.warn(atlasnotfounderror.__doc__) c:\users\dell\appdata\local\temp\easy_install-ifrvr4\numpy-1.9.2\numpy\distutils \system_info.py:1516: userwarning:     lapack (http://www.netlib.org/lapack/) libraries not found.     directories search libraries can specified in     numpy/distutils/site.cfg file (section [lapack]) or setting     lapack environment variable.   warnings.warn(lapacknotfounderror.__doc__) c:\users\dell\appdata\local\temp\easy_install-ifrvr4\numpy-1.9.2\numpy\distutils \system_info.py:1519: userwarning:     lapack (http://www.netlib.org/lapack/) sources not found.     directories search sources can specified in     numpy/distutils/site.cfg file (section [lapack_src]) or setting     lapack_src environment variable.   warnings.warn(lapacksrcnotfounderror.__doc__) c:\python27\lib\distutils\dist.py:267: userwarning: unknown distribution option:  'define_macros'   warnings.warn(msg) **error: setup script exited error: microsoft visual c++ 9.0 required (una ble find vcvarsall.bat). http://aka.ms/vcpython27** 

but after installed "vcpython27" gave me :

on cmd:

n function _main _configtest.exe : fatal error lnk1120: 1 unresolved externals _configtest.obj : error lnk2019: unresolved external symbol _atanhl referenced n function _main _configtest.exe : fatal error lnk1120: 1 unresolved externals _configtest.obj : error lnk2019: unresolved external symbol _hypotl referenced n function _main _configtest.exe : fatal error lnk1120: 1 unresolved externals _configtest.obj : error lnk2019: unresolved external symbol _atan2l referenced n function _main _configtest.exe : fatal error lnk1120: 1 unresolved externals _configtest.obj : error lnk2019: unresolved external symbol _powl referenced in function _main _configtest.exe : fatal error lnk1120: 1 unresolved externals _configtest.obj : error lnk2019: unresolved external symbol _fmodl referenced in  function _main _configtest.exe : fatal error lnk1120: 1 unresolved externals _configtest.obj : error lnk2019: unresolved external symbol _modfl referenced in  function _main _configtest.exe : fatal error lnk1120: 1 unresolved externals _configtest.obj : error lnk2019: unresolved external symbol _frexpl referenced n function _main _configtest.exe : fatal error lnk1120: 1 unresolved externals _configtest.obj : error lnk2019: unresolved external symbol _ldexpl referenced n function _main _configtest.exe : fatal error lnk1120: 1 unresolved externals _configtest.obj : error lnk2019: unresolved external symbol _exp2l referenced in  function _main _configtest.exe : fatal error lnk1120: 1 unresolved externals _configtest.obj : error lnk2019: unresolved external symbol _log2l referenced in  function _main _configtest.exe : fatal error lnk1120: 1 unresolved externals _configtest.obj : error lnk2019: unresolved external symbol _copysignl reference d in function _main _configtest.exe : fatal error lnk1120: 1 unresolved externals _configtest.obj : error lnk2019: unresolved external symbol _nextafterl referenc ed in function _main _configtest.exe : fatal error lnk1120: 1 unresolved externals _configtest.c _configtest.c(8) : error c2065: 'have_decl_signbit' : undeclared identifier _configtest.c _configtest.c(8) : error c2065: 'have_decl_isfinite' : undeclared identifier _configtest.c _configtest.c(8) : error c2065: 'signbit' : undeclared identifier _configtest.c _configtest.c(8) : error c2065: 'isfinite' : undeclared identifier _configtest.c _configtest.c(1) : fatal error c1083: cannot open include file: 'complex.h': no such file or directory build_architecture: 'intel', os.name='nt', sys.platform='win32' _configtest.c _configtest.c(3) : error c2054: expected '(' follow 'inline' _configtest.c(4) : error c2085: 'static_func' : not in formal parameter list _configtest.c(4) : error c2143: syntax error : missing ';' before '{' _configtest.c(7) : error c2054: expected '(' follow 'inline' _configtest.c(8) : error c2085: 'nostatic_func' : not in formal parameter list _configtest.c(8) : error c2143: syntax error : missing ';' before '{' _configtest.c _configtest.c(3) : error c2054: expected '(' follow '__inline__' _configtest.c(4) : error c2085: 'static_func' : not in formal parameter list _configtest.c(4) : error c2143: syntax error : missing ';' before '{' _configtest.c(7) : error c2054: expected '(' follow '__inline__' _configtest.c(8) : error c2085: 'nostatic_func' : not in formal parameter list _configtest.c(8) : error c2143: syntax error : missing ';' before '{' _configtest.c _configtest.c(7) : error c2065: 'py_unicode_wide' : undeclared identifier file: build\src.win32-2.7\numpy\core\include/numpy\config.h #define sizeof_py_intptr_t 4 #define sizeof_off_t 4 #define sizeof_py_long_long 8 #define mathlib #define have_sin 1 #define have_cos 1 #define have_tan 1 #define have_sinh 1 #define have_cosh 1 #define have_tanh 1 #define have_fabs 1 #define have_floor 1 #define have_ceil 1 #define have_sqrt 1 #define have_log10 1 #define have_log 1 #define have_exp 1 #define have_asin 1 #define have_acos 1 #define have_atan 1 #define have_fmod 1 #define have_modf 1 #define have_frexp 1 #define have_ldexp 1 #define have_atan2 1 #define have_pow 1 #define have_xmmintrin_h 1 #define have_emmintrin_h 1 #define have__mm_load_ps 1 #define have__mm_load_pd 1 #define have___declspec_thread_ 1 #define __npy_private_no_signal #define force_no_long_double_formatting #define enable_separate_compilation 1 #define have_ldouble_ieee_double_le 1 #ifndef __cplusplus #define inline __inline #endif  #ifndef _npy_npy_config_h_ #error config.h should never included directly, include npy_config.h instead #endif  eof _configtest.c _configtest.c(1) : fatal error c1083: cannot open include file: 'inttypes.h': no  such file or directory _configtest.c _configtest.c(6) : fatal error c1189: #error :  gcc >= 4 required file: build\src.win32-2.7\numpy\core\include/numpy\_numpyconfig.h #define npy_sizeof_short sizeof_short #define npy_sizeof_int sizeof_int #define npy_sizeof_long sizeof_long #define npy_sizeof_float 4 #define npy_sizeof_complex_float 8 #define npy_sizeof_double 8 #define npy_sizeof_complex_double 16 #define npy_sizeof_longdouble 8 #define npy_sizeof_complex_longdouble 16 #define npy_sizeof_py_intptr_t 4 #define npy_sizeof_off_t 4 #define npy_sizeof_py_long_long 8 #define npy_sizeof_longlong 8 #define npy_no_signal 1 #define npy_no_smp 0 #define npy_have_decl_isnan #define npy_have_decl_isinf #define npy_enable_separate_compilation 1 #define npy_visibility_hidden #define npy_abi_version 0x01000009 #define npy_api_version 0x00000009  #ifndef __stdc_format_macros #define __stdc_format_macros 1 #endif  eof 

which totally not understandable. idea solving issue?

pandas (and various other python libraries) use c things perform heavy lifting. pip packages download , compile c source on client, , on *nix machines fine have compiler. windows, however, doesn't ship compiler default. options (from hardest easiest):

  1. install c compiler (annoying if don't otherwise c)
  2. install python distribution anaconda or enthought take care of these things (these nice , easy, might have customised env want hold on to).
  3. install package(s) using wheel - these successor eggs, don't require compiling on windows. packages ship wheels, not of them. there is, however, unofficial wheel collection @ http://www.lfd.uci.edu/~gohlke/pythonlibs/ can download wheel, , install using pip.

edit: suggested @cel - for god's sake don't use easy_install! use pip instead - many of packages need have wheel packages pip find. if haven't got pip, try easy_install pip (just reason use internet explorer use download browser ;)


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -