質問編集履歴

2

文章の改善

2021/06/15 13:40

投稿

akisan55
akisan55

スコア49

test CHANGED
File without changes
test CHANGED
@@ -208,7 +208,7 @@
208
208
 
209
209
  新しく出たエラー
210
210
 
211
- ```
211
+ ```log
212
212
 
213
213
  Traceback (most recent call last):
214
214
 
@@ -290,7 +290,7 @@
290
290
 
291
291
  ```
292
292
 
293
- ```
293
+ ```py2exe
294
294
 
295
295
  from distutils.core import setup
296
296
 

1

補足欄の追加

2021/06/15 13:40

投稿

akisan55
akisan55

スコア49

test CHANGED
File without changes
test CHANGED
@@ -203,3 +203,133 @@
203
203
 
204
204
 
205
205
  pyinstallerの使用はしたくありません。(速度と容量の関係上)
206
+
207
+ ###補足
208
+
209
+ 新しく出たエラー
210
+
211
+ ```
212
+
213
+ Traceback (most recent call last):
214
+
215
+ File "test.py", line 1, in <module>
216
+
217
+ File "<frozen importlib._bootstrap>", line 971, in _find_and_load
218
+
219
+ File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
220
+
221
+ File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
222
+
223
+ File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
224
+
225
+ File "nltk\__init__.pyc", line 142, in <module>
226
+
227
+ File "<frozen importlib._bootstrap>", line 971, in _find_and_load
228
+
229
+ File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
230
+
231
+ File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
232
+
233
+ File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
234
+
235
+ File "nltk\chunk\__init__.pyc", line 157, in <module>
236
+
237
+ File "<frozen importlib._bootstrap>", line 971, in _find_and_load
238
+
239
+ File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
240
+
241
+ File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
242
+
243
+ File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
244
+
245
+ File "nltk\chunk\api.pyc", line 13, in <module>
246
+
247
+ File "<frozen importlib._bootstrap>", line 971, in _find_and_load
248
+
249
+ File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
250
+
251
+ File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
252
+
253
+ File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
254
+
255
+ File "nltk\parse\__init__.pyc", line 100, in <module>
256
+
257
+ File "<frozen importlib._bootstrap>", line 971, in _find_and_load
258
+
259
+ File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
260
+
261
+ File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
262
+
263
+ File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
264
+
265
+ File "nltk\parse\transitionparser.pyc", line 19, in <module>
266
+
267
+ File "<frozen importlib._bootstrap>", line 971, in _find_and_load
268
+
269
+ File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
270
+
271
+ File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
272
+
273
+ File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
274
+
275
+ File "sklearn\__init__.pyc", line 80, in <module>
276
+
277
+ File "<frozen importlib._bootstrap>", line 971, in _find_and_load
278
+
279
+ File "<frozen importlib._bootstrap>", line 955, in _find_and_load_unlocked
280
+
281
+ File "<frozen importlib._bootstrap>", line 656, in _load_unlocked
282
+
283
+ File "<frozen importlib._bootstrap>", line 626, in _load_backward_compatible
284
+
285
+ File "sklearn\_distributor_init.pyc", line 23, in <module>
286
+
287
+ File "ctypes\__init__.pyc", line 348, in __init__
288
+
289
+ OSError: [WinError 126] 指定されたモジュールが見つかりません。
290
+
291
+ ```
292
+
293
+ ```
294
+
295
+ from distutils.core import setup
296
+
297
+ import py2exe
298
+
299
+
300
+
301
+ option = {
302
+
303
+ 'compressed': 1,
304
+
305
+ 'optimize': 2,
306
+
307
+ 'bundle_files': 2,
308
+
309
+ }
310
+
311
+
312
+
313
+
314
+
315
+ setup(
316
+
317
+ options = {
318
+
319
+ 'py2exe': {
320
+
321
+ 'bundle_files': 3,
322
+
323
+ 'optimize': 2,
324
+
325
+ 'includes': ["nltk"]
326
+
327
+ }
328
+
329
+ },
330
+
331
+ windows = [{'script': 'test.py'}],
332
+
333
+ )
334
+
335
+ ```