Trouble installing Pandas Numpy

by: davidb1835, 9 years ago


Really looking forward to your series on Data Analysis. But I'm having trouble almost right from the start. I can install Python but the PIP INSTALL PANDAS. The command launches and retrieves the components but the setup.py step fails totally: Libraries Not Found errors occur immediately. Error messages to numerous to post. I've found this type of error on-line (Stackoverflow, I think) but I did not see any solutions that applied to my setup.

I'm  on a Windows 10 machine. I've tried with both Python 3.5.1 and 3.4.4 versions.

I'm not asking for help in troubleshooting. I'm just hoping this is a known error and you might have some specific references for me.

Thanks for all the great content!
David



You must be logged in to post. Please login or register an account.



Really don't know what to tell you, other than troubleshooting help, especially when you don't say which error you are getting... Any problem is pretty much always going to be solved via troubleshooting / debugging. Learning what the errors you get means is essential for you to understand what they mean in the future when you get them.

So I am going to go ahead and give you some troubleshooting advice anyway.

First, you need to figure out if you are using 32 or 64 bit Python. Just because you have a 64 bit operating system, it doesn't mean you are using 64 bit python, 32 is the default.

Next, on windows, the C libraries are sometimes a pain in the butt, especially for 64 bit, but sometimes even on 32.

If you are getting the vcvarsall (spelled something like that) error (says "unable to find vcvarsall.bat," or something like that), then you want to use http://www.lfd.uci.edu/~gohlke/pythonlibs/ to get the package binaries pre-built for you.

You can use pip to install these wheel files. See here about halfway through if you are confused about what to do with wheel file downloads: https://pythonprogramming.net/using-pip-install-for-python-modules/

If you are getting an error about an unsupported wheel file, then you are probably trying to install the wrong version for your system.

If you are getting an error about no proper package, then you are probably trying to install Numpy with pip with 64 bit python, and you need to use the unofficial binary for 64 bit... since there is no native 64bit Numpy at the moment.

-Harrison 9 years ago

You must be logged in to post. Please login or register an account.


I guess I wasn't clear. I just didn't want to bother you with stuff I should be researching myself! And here you have worked even harder.

Yes, the last error in the list says "unable to find vcvarsall.bat". I was keying on the early exceptions that said "missing libraries".

I stayed with 32-bit even though I have a 64-bit PC. Here is the full output from

PIP INSTALL PANDAS > pip-install-pandas.txt

Collecting pandas
  Using cached pandas-0.17.1-cp34-none-win32.whl
Requirement already satisfied (use --upgrade to upgrade): pytz>=2011k in c:python34libsite-packages (from pandas)
Collecting numpy>=1.7.0 (from pandas)
  Using cached numpy-1.10.2.tar.gz
Requirement already satisfied (use --upgrade to upgrade): python-dateutil>=2 in c:python34libsite-packages (from pandas)
Requirement already satisfied (use --upgrade to upgrade): six>=1.5 in c:python34libsite-packages (from python-dateutil>=2->pandas)
Installing collected packages: numpy, pandas
  Running setup.py install for numpy
    Complete output from command c:python34python.exe -c "import setuptools, tokenize;__file__='C:UsersFamilyAppDataLocalTemppip-build-iq3s30cfnumpysetup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('rn', 'n'), __file__, 'exec'))" install --record C:UsersFamilyAppDataLocalTemppip-y7__jwcx-recordinstall-record.txt --single-version-externally-managed --compile:
    blas_opt_info:
    blas_mkl_info:
      libraries mkl,vml,guide not found in ['c:python34lib', 'C:', 'c:python34libs']
      NOT AVAILABLE
    
    openblas_info:
      libraries openblas not found in ['c:python34lib', 'C:', 'c:python34libs']
      NOT AVAILABLE
    
    atlas_3_10_blas_threads_info:
    Setting PTATLAS=ATLAS
      libraries tatlas not found in ['c:python34lib', 'C:', 'c:python34libs']
      NOT AVAILABLE
    
    atlas_3_10_blas_info:
      libraries satlas not found in ['c:python34lib', 'C:', 'c:python34libs']
      NOT AVAILABLE
    
    atlas_blas_threads_info:
    Setting PTATLAS=ATLAS
      libraries ptf77blas,ptcblas,atlas not found in ['c:python34lib', 'C:', 'c:python34libs']
      NOT AVAILABLE
    
    atlas_blas_info:
      libraries f77blas,cblas,atlas not found in ['c:python34lib', 'C:', 'c:python34libs']
      NOT AVAILABLE
    
    blas_info:
      libraries blas not found in ['c:python34lib', 'C:', 'c:python34libs']
      NOT AVAILABLE
    
    blas_src_info:
      NOT AVAILABLE
    
      NOT AVAILABLE
    
    non-existing path in 'numpydistutils': 'site.cfg'
    F2PY Version 2
    lapack_opt_info:
    openblas_lapack_info:
      libraries openblas not found in ['c:python34lib', 'C:', 'c:python34libs']
      NOT AVAILABLE
    
    lapack_mkl_info:
    mkl_info:
      libraries mkl,vml,guide not found in ['c:python34lib', 'C:', 'c:python34libs']
      NOT AVAILABLE
    
      NOT AVAILABLE
    
    atlas_3_10_threads_info:
    Setting PTATLAS=ATLAS
      libraries tatlas,tatlas not found in c:python34lib
      libraries lapack_atlas not found in c:python34lib
      libraries tatlas,tatlas not found in C:
      libraries lapack_atlas not found in C:
      libraries tatlas,tatlas not found in c:python34libs
      libraries lapack_atlas not found in c:python34libs
    <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
      NOT AVAILABLE
    
    atlas_3_10_info:
      libraries satlas,satlas not found in c:python34lib
      libraries lapack_atlas not found in c:python34lib
      libraries satlas,satlas not found in C:
      libraries lapack_atlas not found in C:
      libraries satlas,satlas not found in c:python34libs
      libraries lapack_atlas not found in c:python34libs
    <class 'numpy.distutils.system_info.atlas_3_10_info'>
      NOT AVAILABLE
    
    atlas_threads_info:
    Setting PTATLAS=ATLAS
      libraries ptf77blas,ptcblas,atlas not found in c:python34lib
      libraries lapack_atlas not found in c:python34lib
      libraries ptf77blas,ptcblas,atlas not found in C:
      libraries lapack_atlas not found in C:
      libraries ptf77blas,ptcblas,atlas not found in c:python34libs
      libraries lapack_atlas not found in c:python34libs
    <class 'numpy.distutils.system_info.atlas_threads_info'>
      NOT AVAILABLE
    
    atlas_info:
      libraries f77blas,cblas,atlas not found in c:python34lib
      libraries lapack_atlas not found in c:python34lib
      libraries f77blas,cblas,atlas not found in C:
      libraries lapack_atlas not found in C:
      libraries f77blas,cblas,atlas not found in c:python34libs
      libraries lapack_atlas not found in c:python34libs
    <class 'numpy.distutils.system_info.atlas_info'>
      NOT AVAILABLE
    
    lapack_info:
      libraries lapack not found in ['c:python34lib', 'C:', 'c:python34libs']
      NOT AVAILABLE
    
    lapack_src_info:
      NOT AVAILABLE
    
      NOT AVAILABLE
    
    running install
    running build
    running config_cc
    unifing config_cc, config, build_clib, build_ext, build commands --compiler options
    running config_fc
    unifing config_fc, config, build_clib, build_ext, build commands --fcompiler options
    running build_src
    build_src
    building py_modules sources
    creating build
    creating buildsrc.win32-3.4
    creating buildsrc.win32-3.4numpy
    creating buildsrc.win32-3.4numpydistutils
    building library "npymath" sources
    Running from numpy source directory.
    C:UsersFamilyAppDataLocalTemppip-build-iq3s30cfnumpynumpydistutilssystem_info.py:1651: UserWarning:
        Atlas (http://math-atlas.sourceforge.net/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [atlas]) or by setting
        the ATLAS environment variable.
      warnings.warn(AtlasNotFoundError.__doc__)
    C:UsersFamilyAppDataLocalTemppip-build-iq3s30cfnumpynumpydistutilssystem_info.py:1660: UserWarning:
        Blas (http://www.netlib.org/blas/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [blas]) or by setting
        the BLAS environment variable.
      warnings.warn(BlasNotFoundError.__doc__)
    C:UsersFamilyAppDataLocalTemppip-build-iq3s30cfnumpynumpydistutilssystem_info.py:1663: UserWarning:
        Blas (http://www.netlib.org/blas/) sources not found.
        Directories to search for the sources can be specified in the
        numpy/distutils/site.cfg file (section [blas_src]) or by setting
        the BLAS_SRC environment variable.
      warnings.warn(BlasSrcNotFoundError.__doc__)
    C:UsersFamilyAppDataLocalTemppip-build-iq3s30cfnumpynumpydistutilssystem_info.py:1552: UserWarning:
        Atlas (http://math-atlas.sourceforge.net/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [atlas]) or by setting
        the ATLAS environment variable.
      warnings.warn(AtlasNotFoundError.__doc__)
    C:UsersFamilyAppDataLocalTemppip-build-iq3s30cfnumpynumpydistutilssystem_info.py:1563: UserWarning:
        Lapack (http://www.netlib.org/lapack/) libraries not found.
        Directories to search for the libraries can be specified in the
        numpy/distutils/site.cfg file (section [lapack]) or by setting
        the LAPACK environment variable.
      warnings.warn(LapackNotFoundError.__doc__)
    C:UsersFamilyAppDataLocalTemppip-build-iq3s30cfnumpynumpydistutilssystem_info.py:1566: UserWarning:
        Lapack (http://www.netlib.org/lapack/) sources not found.
        Directories to search for the sources can be specified in the
        numpy/distutils/site.cfg file (section [lapack_src]) or by setting
        the LAPACK_SRC environment variable.
      warnings.warn(LapackSrcNotFoundError.__doc__)
    c:python34libdistutilsdist.py:260: UserWarning: Unknown distribution option: 'define_macros'
      warnings.warn(msg)
    error: Microsoft Visual C++ 10.0 is required (Unable to find vcvarsall.bat).
    
    ----------------------------------------


-davidb1835 9 years ago

You must be logged in to post. Please login or register an account.


Right, so in this case, you believe you have Python 3.4, 32 bit. Thus, you would go to:
http://www.lfd.uci.edu/~gohlke/pythonlibs/#numpy

Choosing:
numpy-1.10.2+vanilla-cp34-none-win32.whl


Download that, and use pip to install that wheel file. Instead of typing just the package name, you do pip install file_path

-Harrison 9 years ago

You must be logged in to post. Please login or register an account.


That worked perfectly. Thank you so much!

And I can assume the Pandas part of the installation completed okay?

-davidb1835 9 years ago

You must be logged in to post. Please login or register an account.


Nevermind! It did NOT, but I pulled down the Pandas whl from the same site and installed. PIP LIST now confirms Pandas and NumPy installed. Thanks!


-davidb1835 9 years ago

You must be logged in to post. Please login or register an account.


Awesome, great to hear you're all set!

-Harrison 9 years ago

You must be logged in to post. Please login or register an account.