How to install NumPy for Python 3.6

I am using Python 3.6b3 for a long running project, developing on Windows. For this project I also need NumPy. I’ve tried Python36 -m pip install numpy, but it seems that pip is not yet in the beta. What’s the best way to install NumPy for Python 3.6b3?

[EDIT: Added installation log, after using ensurepip]

D:\aaa\numpy-1.12.0b1>call C:\Python36\python.exe -m pip install numpy 
Collecting numpy
  Using cached numpy-1.11.2.tar.gz
Installing collected packages: numpy
  Running setup.py install for numpy: started
    Running setup.py install for numpy: finished with status 'error'
    Complete output from command C:\Python36\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\info_000\\AppData\\Local\\Temp\\pip-build-ueljt0po\\numpy\\setup.py';exec(compile(getattr(tokenize, 'open', open)(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record C:\Users\info_000\AppData\Local\Temp\pip-nmezr3c7-record\install-record.txt --single-version-externally-managed --compile:
    Running from numpy source directory.

    Note: if you need reliable uninstall behavior, then install
    with pip instead of using `setup.py install`:

      - `pip install .`       (from a git repo or downloaded source
                               release)
      - `pip install numpy`   (last Numpy release on PyPi)


    blas_opt_info:
    blas_mkl_info:
      libraries mkl_rt not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs']
      NOT AVAILABLE

    openblas_info:
      libraries openblas not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs']
      NOT AVAILABLE

    atlas_3_10_blas_threads_info:
    Setting PTATLAS=ATLAS
      libraries tatlas not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs']
      NOT AVAILABLE

    atlas_3_10_blas_info:
      libraries satlas not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs']
      NOT AVAILABLE

    atlas_blas_threads_info:
    Setting PTATLAS=ATLAS
      libraries ptf77blas,ptcblas,atlas not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs']
      NOT AVAILABLE

    atlas_blas_info:
      libraries f77blas,cblas,atlas not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs']
      NOT AVAILABLE

    C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy\numpy\distutils\system_info.py:1630: 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__)
    blas_info:
      libraries blas not found in ['C:\\Python36\\lib', 'C:\\', 'C:\\Python36\\libs']
      NOT AVAILABLE

    C:\Users\info_000\AppData\Local\Temp\pip-build-ueljt0po\numpy

Leave a Comment