質問編集履歴

1

コマンド実行時のログ掲載

2018/10/15 04:27

投稿

Tatsuo_Iriyama
Tatsuo_Iriyama

スコア50

test CHANGED
File without changes
test CHANGED
@@ -71,3 +71,225 @@
71
71
 
72
72
 
73
73
  ※わからない部分ありましたら、修正依頼等で質問して下さい。
74
+
75
+
76
+
77
+
78
+
79
+ ##追記
80
+
81
+
82
+
83
+ ```
84
+
85
+ [vagrant@local sample]$ sudo pip install matplotlib
86
+
87
+ Collecting matplotlib
88
+
89
+ Using cached https://files.pythonhosted.org/packages/59/08/04933377dc4500e3698e93f9113dc3624874e0914f4c85767ecb5b389084/matplotlib-2.2.3-cp27-cp27mu-manylinux1_x86_64.whl
90
+
91
+ Requirement already satisfied: six>=1.10 in /usr/lib/python2.7/site-packages (from matplotlib) (1.11.0)
92
+
93
+ Requirement already satisfied: python-dateutil>=2.1 in /usr/lib/python2.7/site-packages (from matplotlib) (2.7.3)
94
+
95
+ Requirement already satisfied: pytz in /usr/lib/python2.7/site-packages (from matplotlib) (2018.5)
96
+
97
+ Requirement already satisfied: kiwisolver>=1.0.1 in /usr/lib64/python2.7/site-packages (from matplotlib) (1.0.1)
98
+
99
+ Requirement already satisfied: numpy>=1.7.1 in /usr/lib64/python2.7/site-packages (from matplotlib) (1.15.2)
100
+
101
+ Requirement already satisfied: cycler>=0.10 in /usr/lib/python2.7/site-packages (from matplotlib) (0.10.0)
102
+
103
+ Requirement already satisfied: pyparsing!=2.0.4,!=2.1.2,!=2.1.6,>=2.0.1 in /usr/lib/python2.7/site-packages (from matplotlib) (2.2.2)
104
+
105
+ Requirement already satisfied: backports.functools-lru-cache in /usr/lib/python2.7/site-packages (from matplotlib) (1.5)
106
+
107
+ Collecting subprocess32 (from matplotlib)
108
+
109
+ Using cached https://files.pythonhosted.org/packages/be/2b/beeba583e9877e64db10b52a96915afc0feabf7144dcbf2a0d0ea68bf73d/subprocess32-3.5.3.tar.gz
110
+
111
+ Requirement already satisfied: setuptools in /usr/lib/python2.7/site-packages (from kiwisolver>=1.0.1->matplotlib) (40.4.3)
112
+
113
+ Building wheels for collected packages: subprocess32
114
+
115
+ Running setup.py bdist_wheel for subprocess32 ... error
116
+
117
+ Complete output from command /bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-JxgJ1K/subprocess32/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/pip-wheel-_6DKQR --python-tag cp27:
118
+
119
+ running bdist_wheel
120
+
121
+ running build
122
+
123
+ running build_py
124
+
125
+ creating build
126
+
127
+ creating build/lib.linux-x86_64-2.7
128
+
129
+ copying subprocess32.py -> build/lib.linux-x86_64-2.7
130
+
131
+ running build_ext
132
+
133
+ running build_configure
134
+
135
+ checking for gcc... gcc
136
+
137
+ checking whether the C compiler works... yes
138
+
139
+ checking for C compiler default output file name... a.out
140
+
141
+ checking for suffix of executables...
142
+
143
+ checking whether we are cross compiling... no
144
+
145
+ checking for suffix of object files... o
146
+
147
+ checking whether we are using the GNU C compiler... yes
148
+
149
+ checking whether gcc accepts -g... yes
150
+
151
+ checking for gcc option to accept ISO C89... none needed
152
+
153
+ checking how to run the C preprocessor... gcc -E
154
+
155
+ checking for grep that handles long lines and -e... /bin/grep
156
+
157
+ checking for egrep... /bin/grep -E
158
+
159
+ checking for ANSI C header files... yes
160
+
161
+ checking for sys/types.h... yes
162
+
163
+ checking for sys/stat.h... yes
164
+
165
+ checking for stdlib.h... yes
166
+
167
+ checking for string.h... yes
168
+
169
+ checking for memory.h... yes
170
+
171
+ checking for strings.h... yes
172
+
173
+ checking for inttypes.h... yes
174
+
175
+ checking for stdint.h... yes
176
+
177
+ checking for unistd.h... yes
178
+
179
+ checking for unistd.h... (cached) yes
180
+
181
+ checking fcntl.h usability... yes
182
+
183
+ checking fcntl.h presence... yes
184
+
185
+ checking for fcntl.h... yes
186
+
187
+ checking signal.h usability... yes
188
+
189
+ checking signal.h presence... yes
190
+
191
+ checking for signal.h... yes
192
+
193
+ checking sys/cdefs.h usability... yes
194
+
195
+ checking sys/cdefs.h presence... yes
196
+
197
+ checking for sys/cdefs.h... yes
198
+
199
+ checking for sys/types.h... (cached) yes
200
+
201
+ checking for sys/stat.h... (cached) yes
202
+
203
+ checking sys/syscall.h usability... yes
204
+
205
+ checking sys/syscall.h presence... yes
206
+
207
+ checking for sys/syscall.h... yes
208
+
209
+ checking for dirent.h that defines DIR... yes
210
+
211
+ checking for library containing opendir... none required
212
+
213
+ checking for pipe2... yes
214
+
215
+ checking for setsid... yes
216
+
217
+ checking whether dirfd is declared... yes
218
+
219
+ configure: creating ./config.status
220
+
221
+ config.status: creating _posixsubprocess_config.h
222
+
223
+ building '_posixsubprocess32' extension
224
+
225
+ creating build/temp.linux-x86_64-2.7
226
+
227
+ gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_posixsubprocess.o
228
+
229
+ _posixsubprocess.c:16:20: 致命的エラー: Python.h: そのようなファイルやディレクトリはありません
230
+
231
+ #include "Python.h"
232
+
233
+ ^
234
+
235
+ コンパイルを停止しました。
236
+
237
+ error: command 'gcc' failed with exit status 1
238
+
239
+
240
+
241
+ ----------------------------------------
242
+
243
+ Failed building wheel for subprocess32
244
+
245
+ Running setup.py clean for subprocess32
246
+
247
+ Failed to build subprocess32
248
+
249
+ Installing collected packages: subprocess32, matplotlib
250
+
251
+ Running setup.py install for subprocess32 ... error
252
+
253
+ Complete output from command /bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-JxgJ1K/subprocess32/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-dYQhY8/install-record.txt --single-version-externally-managed --compile:
254
+
255
+ running install
256
+
257
+ running build
258
+
259
+ running build_py
260
+
261
+ creating build
262
+
263
+ creating build/lib.linux-x86_64-2.7
264
+
265
+ copying subprocess32.py -> build/lib.linux-x86_64-2.7
266
+
267
+ running build_ext
268
+
269
+ running build_configure
270
+
271
+ _posixsubprocess_config.h is already up to date.
272
+
273
+ building '_posixsubprocess32' extension
274
+
275
+ creating build/temp.linux-x86_64-2.7
276
+
277
+ gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c _posixsubprocess.c -o build/temp.linux-x86_64-2.7/_posixsubprocess.o
278
+
279
+ _posixsubprocess.c:16:20: 致命的エラー: Python.h: そのようなファイルやディレクトリはありません
280
+
281
+ #include "Python.h"
282
+
283
+ ^
284
+
285
+ コンパイルを停止しました。
286
+
287
+ error: command 'gcc' failed with exit status 1
288
+
289
+
290
+
291
+ ----------------------------------------
292
+
293
+ Command "/bin/python -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-JxgJ1K/subprocess32/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-dYQhY8/install-record.txt --single-version-externally-managed --compile" failed with error code 1 in /tmp/pip-install-JxgJ1K/subprocess32/
294
+
295
+ ```