質問編集履歴

7

d」

2019/03/29 16:52

投稿

koikogarey
koikogarey

スコア52

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  お世話になります。tensorflowのインストールができず困っています。
2
2
 
3
-
3
+ 具体的にはprotobufのコンパイルが通りません。
4
4
 
5
5
 
6
6
 
@@ -68,10 +68,104 @@
68
68
 
69
69
  ```ここに言語を入力
70
70
 
71
+ Traceback (most recent call last):
72
+
73
+ File "C:\Users\xxx\Anaconda3\envs\sample-env\lib\site-packages\numpy\core\__init__.py", line 40, in <module>
74
+
75
+ from . import multiarray
76
+
77
+ File "C:\Users\xxx\Anaconda3\envs\sample-env\lib\site-packages\numpy\core\multiarray.py", line 12, in <module>
78
+
79
+ from . import overrides
80
+
81
+ File "C:\Users\xxx\Anaconda3\envs\sample-env\lib\site-packages\numpy\core\overrides.py", line 6, in <module>
82
+
83
+ from numpy.core._multiarray_umath import (
84
+
85
+ ModuleNotFoundError: No module named 'numpy.core._multiarray_umath'
86
+
87
+
88
+
89
+ During handling of the above exception, another exception occurred:
90
+
91
+
92
+
93
+ Traceback (most recent call last):
94
+
95
+ File "object_detection/builders/model_builder_test.py", line 20, in <module>
96
+
97
+ import tensorflow as tf
98
+
99
+ File "C:\Users\xxx\Anaconda3\envs\sample-env\lib\site-packages\tensorflow\__init__.py", line 24, in <module>
100
+
101
+ from tensorflow.python import *
102
+
103
+ File "C:\Users\xxx\Anaconda3\envs\sample-env\lib\site-packages\tensorflow\python\__init__.py", line 47, in <module>
104
+
105
+ import numpy as np
106
+
107
+ File "C:\Users\xxx\Anaconda3\envs\sample-env\lib\site-packages\numpy\__init__.py", line 142, in <module>
108
+
109
+ from . import core
110
+
111
+ File "C:\Users\xxx\Anaconda3\envs\sample-env\lib\site-packages\numpy\core\__init__.py", line 71, in <module>
112
+
113
+ raise ImportError(msg)
114
+
115
+ ImportError:
116
+
117
+
118
+
119
+ IMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!
120
+
121
+
122
+
123
+ Importing the multiarray numpy extension module failed. Most
124
+
125
+ likely you are trying to import a failed build of numpy.
126
+
127
+ Here is how to proceed:
128
+
129
+ - If you're working with a numpy git repository, try `git clean -xdf`
130
+
131
+ (removes all files not under version control) and rebuild numpy.
132
+
133
+ - If you are simply trying to use the numpy version that you have installed:
134
+
135
+ your installation is broken - please reinstall numpy.
136
+
137
+ - If you have already reinstalled and that did not fix the problem, then:
138
+
139
+ 1. Check that you are using the Python you expect (you're using C:\Users\xxx\Anaconda3\envs\sample-env\python.exe),
140
+
141
+ and that you have no directories in your PATH or PYTHONPATH that can
142
+
143
+ interfere with the Python and numpy versions you're trying to use.
144
+
145
+ 2. If (1) looks fine, you can open a new issue at
146
+
147
+ https://github.com/numpy/numpy/issues. Please include details on:
148
+
149
+ - how you installed Python
150
+
151
+ - how you installed numpy
152
+
153
+ - your operating system
154
+
155
+ - whether or not you have multiple versions of Python installed
156
+
157
+ - if you built from source, your compiler versions and ideally a build log
158
+
159
+
160
+
161
+ Note: this error has many possible causes, so please don't comment on
162
+
163
+ an existing issue about this - open a new one instead.
164
+
165
+
166
+
71
167
  Original error was: No module named 'numpy.core._multiarray_umath'
72
168
 
73
-
74
-
75
169
  ```
76
170
 
77
171
 

6

2019/03/29 16:52

投稿

koikogarey
koikogarey

スコア52

test CHANGED
File without changes
test CHANGED
@@ -152,4 +152,218 @@
152
152
 
153
153
  ```
154
154
 
155
+
156
+
157
+ 追記2
158
+
159
+
160
+
161
+ ```ここに言語を入力
162
+
163
+ for /r %v in (object_detection/protos/*.proto) do protoc object_detection/protos/%~nxv -python_out=.
164
+
165
+
166
+
167
+ ```
168
+
169
+ さらに上記コマンドを打った所以下
170
+
171
+ ```ここに言語を入力
172
+
173
+ Unknown flag: -p 
174
+
175
+ ```
176
+
155
- C:\WINDOWS\system32>
177
+ という謎のエラーが大量に出ました。コンパイルが通りません。
178
+
179
+
180
+
181
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>for /r %v in (object_detection/protos/*.proto) do protoc object_detection/protos/%~nxv -python_out=.
182
+
183
+
184
+
185
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/anchor_generator.proto -python_out=.
186
+
187
+ Unknown flag: -p
188
+
189
+
190
+
191
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/argmax_matcher.proto -python_out=.
192
+
193
+ Unknown flag: -p
194
+
195
+
196
+
197
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/bipartite_matcher.proto -python_out=.
198
+
199
+ Unknown flag: -p
200
+
201
+
202
+
203
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/box_coder.proto -python_out=.
204
+
205
+ Unknown flag: -p
206
+
207
+
208
+
209
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/box_predictor.proto -python_out=.
210
+
211
+ Unknown flag: -p
212
+
213
+
214
+
215
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/calibration.proto -python_out=.
216
+
217
+ Unknown flag: -p
218
+
219
+
220
+
221
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/eval.proto -python_out=.
222
+
223
+ Unknown flag: -p
224
+
225
+
226
+
227
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/faster_rcnn.proto -python_out=.
228
+
229
+ Unknown flag: -p
230
+
231
+
232
+
233
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/faster_rcnn_box_coder.proto -python_out=.
234
+
235
+ Unknown flag: -p
236
+
237
+
238
+
239
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/graph_rewriter.proto -python_out=.
240
+
241
+ Unknown flag: -p
242
+
243
+
244
+
245
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/grid_anchor_generator.proto -python_out=.
246
+
247
+ Unknown flag: -p
248
+
249
+
250
+
251
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/hyperparams.proto -python_out=.
252
+
253
+ Unknown flag: -p
254
+
255
+
256
+
257
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/image_resizer.proto -python_out=.
258
+
259
+ Unknown flag: -p
260
+
261
+
262
+
263
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/input_reader.proto -python_out=.
264
+
265
+ Unknown flag: -p
266
+
267
+
268
+
269
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/keypoint_box_coder.proto -python_out=.
270
+
271
+ Unknown flag: -p
272
+
273
+
274
+
275
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/losses.proto -python_out=.
276
+
277
+ Unknown flag: -p
278
+
279
+
280
+
281
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/matcher.proto -python_out=.
282
+
283
+ Unknown flag: -p
284
+
285
+
286
+
287
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/mean_stddev_box_coder.proto -python_out=.
288
+
289
+ Unknown flag: -p
290
+
291
+
292
+
293
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/model.proto -python_out=.
294
+
295
+ Unknown flag: -p
296
+
297
+
298
+
299
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/multiscale_anchor_generator.proto -python_out=.
300
+
301
+ Unknown flag: -p
302
+
303
+
304
+
305
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/optimizer.proto -python_out=.
306
+
307
+ Unknown flag: -p
308
+
309
+
310
+
311
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/pipeline.proto -python_out=.
312
+
313
+ Unknown flag: -p
314
+
315
+
316
+
317
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/post_processing.proto -python_out=.
318
+
319
+ Unknown flag: -p
320
+
321
+
322
+
323
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/preprocessor.proto -python_out=.
324
+
325
+ Unknown flag: -p
326
+
327
+
328
+
329
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/region_similarity_calculator.proto -python_out=.
330
+
331
+ Unknown flag: -p
332
+
333
+
334
+
335
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/square_box_coder.proto -python_out=.
336
+
337
+ Unknown flag: -p
338
+
339
+
340
+
341
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/ssd.proto -python_out=.
342
+
343
+ Unknown flag: -p
344
+
345
+
346
+
347
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/ssd_anchor_generator.proto -python_out=.
348
+
349
+ Unknown flag: -p
350
+
351
+
352
+
353
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/string_int_label_map.proto -python_out=.
354
+
355
+ Unknown flag: -p
356
+
357
+
358
+
359
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>protoc object_detection/protos/train.proto -python_out=.
360
+
361
+ Unknown flag: -p
362
+
363
+
364
+
365
+ (sample-env) C:\Users\xxx\Anaconda3\models-master\research>
366
+
367
+
368
+
369
+ 宜しくお願いします。

5

2019/03/29 16:37

投稿

koikogarey
koikogarey

スコア52

test CHANGED
File without changes
test CHANGED
@@ -131,3 +131,25 @@
131
131
  同様のチャレンジをされている方をみつけましたが管理者権限でコマンドプロンプトを実行してもsudoできません。
132
132
 
133
133
  https://qiita.com/genzai/items/12cacec59f0583846b83
134
+
135
+
136
+
137
+ ```ここに言語を入力
138
+
139
+ C:\WINDOWS\system32>curl -kL https://bootstrap.pypa.io/get-pip.py | sudo python3
140
+
141
+
142
+
143
+ ```
144
+
145
+ ```ここに言語を入力
146
+
147
+ 'sudo' は、内部コマンドまたは外部コマンド、
148
+
149
+ 操作可能なプログラムまたはバッチ ファイルとして認識されていません。
150
+
151
+
152
+
153
+ ```
154
+
155
+ C:\WINDOWS\system32>

4

2019/03/29 16:19

投稿

koikogarey
koikogarey

スコア52

test CHANGED
File without changes
test CHANGED
@@ -123,3 +123,11 @@
123
123
  3日ハマって困っています。ご教示頂ければ幸いです。
124
124
 
125
125
  宜しくお願いします。
126
+
127
+
128
+
129
+ 追記
130
+
131
+ 同様のチャレンジをされている方をみつけましたが管理者権限でコマンドプロンプトを実行してもsudoできません。
132
+
133
+ https://qiita.com/genzai/items/12cacec59f0583846b83

3

現状

2019/03/29 16:13

投稿

koikogarey
koikogarey

スコア52

test CHANGED
File without changes
test CHANGED
@@ -22,7 +22,31 @@
22
22
 
23
23
  https://www.sejuku.net/blog/56695
24
24
 
25
+ 上記URL2.6 Protobufをコンパイルする まで全て終了
26
+
27
+
28
+
29
+ ```ここに言語を入力
30
+
31
+ 1 TensorFlow Object Detection APIとは
32
+
33
+ 2 Windowsにインストールする
34
+
35
+ 2.1 TensorFlow Modelsをダウンロードする
36
+
37
+ 2.2 Protocol Buffersのコンパイラ(protoc.exe)をインストールする
38
+
39
+ 2.3 GPU版TensorFlowをインストールする
40
+
41
+ 2.4 必要なライブラリをインストールする
42
+
43
+ 2.5 Anacondaのtensorflow-gpu環境にmodels-masterを登録する
44
+
45
+ 2.6 Protobufをコンパイルする→イマココ
46
+
25
- 上記URL
47
+ ```
48
+
49
+
26
50
 
27
51
 
28
52
 

2

2

2019/03/29 16:09

投稿

koikogarey
koikogarey

スコア52

test CHANGED
File without changes
test CHANGED
@@ -93,3 +93,9 @@
93
93
  python object_detection/builders/model_builder_test.py
94
94
 
95
95
  コマンドを打っても、上記同様のエラーになります。
96
+
97
+
98
+
99
+ 3日ハマって困っています。ご教示頂ければ幸いです。
100
+
101
+ 宜しくお願いします。

1

@py

2019/03/29 16:07

投稿

koikogarey
koikogarey

スコア52

test CHANGED
@@ -1 +1 @@
1
- tensorflow インストールエラー Original error was: No module named 'numpy.core._multiarray_umath'
1
+ python tensorflow インストールエラー Original error was: No module named 'numpy.core._multiarray_umath'
test CHANGED
File without changes