I want to install Numpy on PyPy on windows but I cannot. Here is my errors:
JavaScript
x
196
196
1
ERROR: Command errored out with exit status 1:
2
command: 'C:pypy3.7-v7.3.4-win64pypy3.exe' 'C:pypy3.7-v7.3.4-win64site-packagespip_vendorpep517in_process_in_process.py' prepare_metadata_for_build_wheel 'C:UsersmypcAppDataLocalTemptmp2y257dmz'
3
cwd: C:UsersmypcAppDataLocalTemppip-install-mnjup8qynumpy_43041314b31a4b2fa25b7000b140e261
4
Complete output (189 lines):
5
Processing numpy/random_bounded_integers.pxd.in
6
Processing numpy/randombit_generator.pyx
7
Processing numpy/randommtrand.pyx
8
Processing numpy/random_bounded_integers.pyx.in
9
Processing numpy/random_common.pyx
10
Processing numpy/random_generator.pyx
11
Processing numpy/random_mt19937.pyx
12
Processing numpy/random_pcg64.pyx
13
Processing numpy/random_philox.pyx
14
Processing numpy/random_sfc64.pyx
15
Cythonizing sources
16
blas_opt_info:
17
blas_mkl_info:
18
No module named 'numpy.distutils._msvccompiler' in numpy.distutils; trying from distutils
19
customize MSVCCompiler
20
libraries mkl_rt not found in ['C:\', 'C:\pypy3.7-v7.3.4-win64\libs']
21
NOT AVAILABLE
22
23
blis_info:
24
libraries blis not found in ['C:\', 'C:\pypy3.7-v7.3.4-win64\libs']
25
NOT AVAILABLE
26
27
openblas_info:
28
libraries openblas not found in ['C:\', 'C:\pypy3.7-v7.3.4-win64\libs']
29
get_default_fcompiler: matching types: '['gnu', 'intelv', 'absoft', 'compaqv', 'intelev', 'gnu95', 'g95', 'intelvem', 'intelem', 'flang']'
30
customize GnuFCompiler
31
Could not locate executable g77
32
Could not locate executable f77
33
customize IntelVisualFCompiler
34
Could not locate executable ifort
35
Could not locate executable ifl
36
customize AbsoftFCompiler
37
Could not locate executable f90
38
customize CompaqVisualFCompiler
39
Could not locate executable DF
40
customize IntelItaniumVisualFCompiler
41
Could not locate executable efl
42
customize Gnu95FCompiler
43
Could not locate executable gfortran
44
Could not locate executable f95
45
customize G95FCompiler
46
Could not locate executable g95
47
customize IntelEM64VisualFCompiler
48
customize IntelEM64TFCompiler
49
Could not locate executable efort
50
Could not locate executable efc
51
customize PGroupFlangCompiler
52
Could not locate executable flang
53
don't know how to compile Fortran code on platform 'nt'
54
NOT AVAILABLE
55
56
atlas_3_10_blas_threads_info:
57
Setting PTATLAS=ATLAS
58
libraries tatlas not found in ['C:\', 'C:\pypy3.7-v7.3.4-win64\libs']
59
NOT AVAILABLE
60
61
atlas_3_10_blas_info:
62
libraries satlas not found in ['C:\', 'C:\pypy3.7-v7.3.4-win64\libs']
63
NOT AVAILABLE
64
65
atlas_blas_threads_info:
66
Setting PTATLAS=ATLAS
67
libraries ptf77blas,ptcblas,atlas not found in ['C:\', 'C:\pypy3.7-v7.3.4-win64\libs']
68
NOT AVAILABLE
69
70
atlas_blas_info:
71
libraries f77blas,cblas,atlas not found in ['C:\', 'C:\pypy3.7-v7.3.4-win64\libs']
72
NOT AVAILABLE
73
74
blas_info:
75
libraries blas not found in ['C:\', 'C:\pypy3.7-v7.3.4-win64\libs']
76
NOT AVAILABLE
77
78
blas_src_info:
79
NOT AVAILABLE
80
81
NOT AVAILABLE
82
83
non-existing path in 'numpy\distutils': 'site.cfg'
84
lapack_opt_info:
85
lapack_mkl_info:
86
libraries mkl_rt not found in ['C:\', 'C:\pypy3.7-v7.3.4-win64\libs']
87
NOT AVAILABLE
88
89
openblas_lapack_info:
90
libraries openblas not found in ['C:\', 'C:\pypy3.7-v7.3.4-win64\libs']
91
NOT AVAILABLE
92
93
openblas_clapack_info:
94
libraries openblas,lapack not found in ['C:\', 'C:\pypy3.7-v7.3.4-win64\libs']
95
NOT AVAILABLE
96
97
flame_info:
98
libraries flame not found in ['C:\', 'C:\pypy3.7-v7.3.4-win64\libs']
99
NOT AVAILABLE
100
101
atlas_3_10_threads_info:
102
Setting PTATLAS=ATLAS
103
libraries lapack_atlas not found in C:
104
libraries tatlas,tatlas not found in C:
105
libraries lapack_atlas not found in C:pypy3.7-v7.3.4-win64libs
106
libraries tatlas,tatlas not found in C:pypy3.7-v7.3.4-win64libs
107
<class 'numpy.distutils.system_info.atlas_3_10_threads_info'>
108
NOT AVAILABLE
109
110
atlas_3_10_info:
111
libraries lapack_atlas not found in C:
112
libraries satlas,satlas not found in C:
113
libraries lapack_atlas not found in C:pypy3.7-v7.3.4-win64libs
114
libraries satlas,satlas not found in C:pypy3.7-v7.3.4-win64libs
115
<class 'numpy.distutils.system_info.atlas_3_10_info'>
116
NOT AVAILABLE
117
118
atlas_threads_info:
119
Setting PTATLAS=ATLAS
120
libraries lapack_atlas not found in C:
121
libraries ptf77blas,ptcblas,atlas not found in C:
122
libraries lapack_atlas not found in C:pypy3.7-v7.3.4-win64libs
123
libraries ptf77blas,ptcblas,atlas not found in C:pypy3.7-v7.3.4-win64libs
124
<class 'numpy.distutils.system_info.atlas_threads_info'>
125
NOT AVAILABLE
126
127
atlas_info:
128
libraries lapack_atlas not found in C:
129
libraries f77blas,cblas,atlas not found in C:
130
libraries lapack_atlas not found in C:pypy3.7-v7.3.4-win64libs
131
libraries f77blas,cblas,atlas not found in C:pypy3.7-v7.3.4-win64libs
132
<class 'numpy.distutils.system_info.atlas_info'>
133
NOT AVAILABLE
134
135
lapack_info:
136
libraries lapack not found in ['C:\', 'C:\pypy3.7-v7.3.4-win64\libs']
137
NOT AVAILABLE
138
139
lapack_src_info:
140
NOT AVAILABLE
141
142
NOT AVAILABLE
143
144
numpy_linalg_lapack_lite:
145
FOUND:
146
language = c
147
define_macros = [('HAVE_BLAS_ILP64', None), ('BLAS_SYMBOL_SUFFIX', '64_')]
148
149
running dist_info
150
running build_src
151
build_src
152
building py_modules sources
153
creating build
154
creating buildsrc.win-amd64-3.7
155
creating buildsrc.win-amd64-3.7numpy
156
creating buildsrc.win-amd64-3.7numpydistutils
157
building library "npymath" sources
158
Running from numpy source directory.
159
setup.py:485: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
160
run_build = parse_setuppy_commands()
161
C:UsersmypcAppDataLocalTemppip-install-mnjup8qynumpy_43041314b31a4b2fa25b7000b140e261numpydistutilssystem_info.py:1989: UserWarning:
162
Optimized (vendor) Blas libraries are not found.
163
Falls back to netlib Blas library which has worse performance.
164
A better performance should be easily gained by switching
165
Blas library.
166
if self._calc_info(blas):
167
C:UsersmypcAppDataLocalTemppip-install-mnjup8qynumpy_43041314b31a4b2fa25b7000b140e261numpydistutilssystem_info.py:1989: UserWarning:
168
Blas (http://www.netlib.org/blas/) libraries not found.
169
Directories to search for the libraries can be specified in the
170
numpy/distutils/site.cfg file (section [blas]) or by setting
171
the BLAS environment variable.
172
if self._calc_info(blas):
173
C:UsersmypcAppDataLocalTemppip-install-mnjup8qynumpy_43041314b31a4b2fa25b7000b140e261numpydistutilssystem_info.py:1989: UserWarning:
174
Blas (http://www.netlib.org/blas/) sources not found.
175
Directories to search for the sources can be specified in the
176
numpy/distutils/site.cfg file (section [blas_src]) or by setting
177
the BLAS_SRC environment variable.
178
if self._calc_info(blas):
179
C:UsersmypcAppDataLocalTemppip-install-mnjup8qynumpy_43041314b31a4b2fa25b7000b140e261numpydistutilssystem_info.py:1849: UserWarning:
180
Lapack (http://www.netlib.org/lapack/) libraries not found.
181
Directories to search for the libraries can be specified in the
182
numpy/distutils/site.cfg file (section [lapack]) or by setting
183
the LAPACK environment variable.
184
return getattr(self, '_calc_info_{}'.format(name))()
185
C:UsersmypcAppDataLocalTemppip-install-mnjup8qynumpy_43041314b31a4b2fa25b7000b140e261numpydistutilssystem_info.py:1849: UserWarning:
186
Lapack (http://www.netlib.org/lapack/) sources not found.
187
Directories to search for the sources can be specified in the
188
numpy/distutils/site.cfg file (section [lapack_src]) or by setting
189
the LAPACK_SRC environment variable.
190
return getattr(self, '_calc_info_{}'.format(name))()
191
C:pypy3.7-v7.3.4-win64lib-python3distutilsdist.py:274: UserWarning: Unknown distribution option: 'define_macros'
192
warnings.warn(msg)
193
error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
194
----------------------------------------
195
WARNING: Discarding https://files.pythonhosted.org/packages/82/a8/1e0f86ae3f13f7ce260e9f782764c16559917f24382c74edfb52149897de/numpy-1.20.2.zip#sha256=878922bf5ad7550aa044aa9301d417e2d3ae50f0f577de92051d739ac6096cee (from https://pypi.org/simple/numpy/) (requires-python:>=3.7). Command errored out with exit status 1: 'C:pypy3.7-v7.3.4-win64pypy3.exe' 'C:pypy3.7-v7.3.4-win64site-packagespip_vendorpep517in_process_in_process.py' prepare_metadata_for_build_wheel 'C:UsersmypcAppDataLocalTemptmp2y257dmz' Check the logs for full command output.
196
Advertisement
Answer
You don’t have any compiler on your system, so PyPy can’t compile the packages.
notice the line error: Microsoft Visual C++ 14.0 is required. Get it with "Build Tools for Visual Studio": https://visualstudio.microsoft.com/downloads/
Download the compiler with default settings and try again.