New issue 3056: Numpy installation fails on Windows
https://bitbucket.org/pypy/pypy/issues/3056/numpy-installation-fails-on-windows

Ram Rachum:

```
Python 3.6.1 (784b254d6699, Apr 16 2019, 12:10:48)[PyPy 7.1.1-beta0 with MSC 
v.1910 32 bit]
```

Numpy fails to install on Windows.

I ran this: 

```
pypy3 -m pip install numpy
```

This is stdout:

```
Collecting numpy
  Using cached 
https://files.pythonhosted.org/packages/da/32/1b8f2bb5fb50e4db68543eb85ce37b9fa6660cd05b58bddfafafa7ed62da/numpy-1.17.0.zip
Installing collected packages: numpy
  Running setup.py install for numpy: started
    Running setup.py install for numpy: finished with status 'error'
```

This is stderr:

```
    ERROR: Complete output from command 'C:\pypy3\pypy3.exe' -u -c 'import 
setuptools, 
tokenize;__file__='"'"'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-3jtvcr7u\\numpy\\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\ADMINI~1\AppData\Local\Temp\pip-record-f74o3cb8\install-record.txt' 
--single-version-externally-managed --compile:
    ERROR: 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:
    customize MSVCCompiler
      libraries mkl_rt not found in ['C:\\', 'C:\\pypy3\\libs']
      NOT AVAILABLE
    
    blis_info:
    customize MSVCCompiler
      libraries blis not found in ['C:\\', 'C:\\pypy3\\libs']
      NOT AVAILABLE
    
    openblas_info:
    customize MSVCCompiler
    customize MSVCCompiler
      libraries openblas not found in ['C:\\', 'C:\\pypy3\\libs']
    get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 
'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
    customize GnuFCompiler
    Could not locate executable g77
    Could not locate executable f77
    customize IntelVisualFCompiler
    Could not locate executable ifort
    Could not locate executable ifl
    customize AbsoftFCompiler
    Could not locate executable f90
    customize CompaqVisualFCompiler
    Found executable C:\Program Files\Git\usr\bin\DF.exe
    Could not locate executable C:\Program
    customize IntelItaniumVisualFCompiler
    Could not locate executable efl
    customize Gnu95FCompiler
    Could not locate executable gfortran
    Could not locate executable f95
    customize G95FCompiler
    Could not locate executable g95
    customize IntelEM64VisualFCompiler
    customize IntelEM64TFCompiler
    Could not locate executable efort
    Could not locate executable efc
    customize PGroupFlangCompiler
    Could not locate executable flang
    don't know how to compile Fortran code on platform 'nt'
      NOT AVAILABLE
    
    atlas_3_10_blas_threads_info:
    Setting PTATLAS=ATLAS
    customize MSVCCompiler
      libraries tatlas not found in ['C:\\', 'C:\\pypy3\\libs']
      NOT AVAILABLE
    
    atlas_3_10_blas_info:
    customize MSVCCompiler
      libraries satlas not found in ['C:\\', 'C:\\pypy3\\libs']
      NOT AVAILABLE
    
    atlas_blas_threads_info:
    Setting PTATLAS=ATLAS
    customize MSVCCompiler
      libraries ptf77blas,ptcblas,atlas not found in ['C:\\', 'C:\\pypy3\\libs']
      NOT AVAILABLE
    
    atlas_blas_info:
    customize MSVCCompiler
      libraries f77blas,cblas,atlas not found in ['C:\\', 'C:\\pypy3\\libs']
      NOT AVAILABLE
    
    accelerate_info:
      NOT AVAILABLE
    
    
C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-3jtvcr7u\numpy\numpy\distutils\system_info.py:690:
 UserWarning:
        Optimized (vendor) Blas libraries are not found.
        Falls back to netlib Blas library which has worse performance.
        A better performance should be easily gained by switching
        Blas library.
      self.calc_info()
    blas_info:
    customize MSVCCompiler
      libraries blas not found in ['C:\\', 'C:\\pypy3\\libs']
      NOT AVAILABLE
    
    
C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-3jtvcr7u\numpy\numpy\distutils\system_info.py:690:
 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.
      self.calc_info()
    blas_src_info:
      NOT AVAILABLE
    
    
C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-3jtvcr7u\numpy\numpy\distutils\system_info.py:690:
 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.
      self.calc_info()
      NOT AVAILABLE
    
    'svnversion' is not recognized as an internal or external command,
    operable program or batch file.
    non-existing path in 'numpy\\distutils': 'site.cfg'
    lapack_opt_info:
    lapack_mkl_info:
    customize MSVCCompiler
      libraries mkl_rt not found in ['C:\\', 'C:\\pypy3\\libs']
      NOT AVAILABLE
    
    openblas_lapack_info:
    customize MSVCCompiler
    customize MSVCCompiler
      libraries openblas not found in ['C:\\', 'C:\\pypy3\\libs']
      NOT AVAILABLE
    
    openblas_clapack_info:
    customize MSVCCompiler
    customize MSVCCompiler
      libraries openblas,lapack not found in ['C:\\', 'C:\\pypy3\\libs']
      NOT AVAILABLE
    
    flame_info:
    customize MSVCCompiler
      libraries flame not found in ['C:\\', 'C:\\pypy3\\libs']
      NOT AVAILABLE
    
    atlas_3_10_threads_info:
    Setting PTATLAS=ATLAS
    customize MSVCCompiler
      libraries lapack_atlas not found in C:\
    customize MSVCCompiler
      libraries tatlas,tatlas not found in C:\
    customize MSVCCompiler
      libraries lapack_atlas not found in C:\pypy3\libs
    customize MSVCCompiler
      libraries tatlas,tatlas not found in C:\pypy3\libs
    <class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
      NOT AVAILABLE
    
    atlas_3_10_info:
    customize MSVCCompiler
      libraries lapack_atlas not found in C:\
    customize MSVCCompiler
      libraries satlas,satlas not found in C:\
    customize MSVCCompiler
      libraries lapack_atlas not found in C:\pypy3\libs
    customize MSVCCompiler
      libraries satlas,satlas not found in C:\pypy3\libs
    <class 'numpy.distutils.system_info.atlas_3_10_info'>
      NOT AVAILABLE
    
    atlas_threads_info:
    Setting PTATLAS=ATLAS
    customize MSVCCompiler
      libraries lapack_atlas not found in C:\
    customize MSVCCompiler
      libraries ptf77blas,ptcblas,atlas not found in C:\
    customize MSVCCompiler
      libraries lapack_atlas not found in C:\pypy3\libs
    customize MSVCCompiler
      libraries ptf77blas,ptcblas,atlas not found in C:\pypy3\libs
    <class 'numpy.distutils.system_info.atlas_threads_info'>
      NOT AVAILABLE
    
    atlas_info:
    customize MSVCCompiler
      libraries lapack_atlas not found in C:\
    customize MSVCCompiler
      libraries f77blas,cblas,atlas not found in C:\
    customize MSVCCompiler
      libraries lapack_atlas not found in C:\pypy3\libs
    customize MSVCCompiler
      libraries f77blas,cblas,atlas not found in C:\pypy3\libs
    <class 'numpy.distutils.system_info.atlas_info'>
      NOT AVAILABLE
    
    lapack_info:
    customize MSVCCompiler
      libraries lapack not found in ['C:\\', 'C:\\pypy3\\libs']
      NOT AVAILABLE
    
    
C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-3jtvcr7u\numpy\numpy\distutils\system_info.py:1712:
 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.
      if getattr(self, '_calc_info_{}'.format(lapack))():
    lapack_src_info:
      NOT AVAILABLE
    
    
C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-3jtvcr7u\numpy\numpy\distutils\system_info.py:1712:
 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.
      if getattr(self, '_calc_info_{}'.format(lapack))():
      NOT AVAILABLE
    
    non-existing path in 'numpy\\random': 'src\\splitmix64\\splitmix.h'
    C:\pypy3\lib-python\3\distutils\dist.py:261: UserWarning: Unknown 
distribution option: 'define_macros'
      warnings.warn(msg)
    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 build\src.win32-3.6
    creating build\src.win32-3.6\numpy
    creating build\src.win32-3.6\numpy\distutils
    building library "npymath" sources
    error: Microsoft Visual C++ 14.1 is required. Get it with "Microsoft Visual 
C++ Build Tools": https://visualstudio.microsoft.com/downloads/
    ----------------------------------------
ERROR: Command "'C:\pypy3\pypy3.exe' -u -c 'import setuptools, 
tokenize;__file__='"'"'C:\\Users\\ADMINI~1\\AppData\\Local\\Temp\\pip-install-3jtvcr7u\\numpy\\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\ADMINI~1\AppData\Local\Temp\pip-record-f74o3cb8\install-record.txt' 
--single-version-externally-managed --compile" failed with error code 1 in 
C:\Users\ADMINI~1\AppData\Local\Temp\pip-install-3jtvcr7u\numpy\
```

Will it really work if I install Microsoft Visual C\+\+ 14.1? I have a vague 
memory that I tried that in the past and it didn’t help, but I can try again.


_______________________________________________
pypy-issue mailing list
pypy-issue@python.org
https://mail.python.org/mailman/listinfo/pypy-issue

Reply via email to