質問編集履歴

3

タイトル変更

2021/09/07 22:22

投稿

xozeit
xozeit

スコア19

test CHANGED
@@ -1 +1 @@
1
- mnistの画像を表示させたい
1
+ WSL環境でPIL(Pillow)を使ってmnistの画像を表示させたい
test CHANGED
File without changes

2

タグ追加(WSL)

2021/09/07 22:22

投稿

xozeit
xozeit

スコア19

test CHANGED
File without changes
test CHANGED
File without changes

1

■210907追記

2021/09/07 22:19

投稿

xozeit
xozeit

スコア19

test CHANGED
File without changes
test CHANGED
@@ -359,3 +359,119 @@
359
359
 
360
360
 
361
361
  ```
362
+
363
+
364
+
365
+ ■210907追記
366
+
367
+
368
+
369
+ imagemagickはなぜかインストールがNot Foundで上手くいきませんでした。
370
+
371
+ ```
372
+
373
+ kataoka@DESKTOP-IJMM4SU:/mnt/c/Users/tiezo/Desktop/python/deep-learning-from-scratch/ch03$ sudo apt install imagemagick
374
+
375
+ [sudo] password for kataoka:
376
+
377
+ Reading package lists... Done
378
+
379
+ Building dependency tree
380
+
381
+ Reading state information... Done
382
+
383
+ The following packages were automatically installed and are no longer required:
384
+
385
+ bridge-utils libfprint-2-tod1 ubuntu-fan
386
+
387
+ Use 'sudo apt autoremove' to remove them.
388
+
389
+ The following additional packages will be installed:
390
+
391
+ gsfonts imagemagick-6-common imagemagick-6.q16 libdjvulibre-text libdjvulibre21 libfftw3-double3 libilmbase24 liblqr-1-0 libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra libmagickwand-6.q16-6
392
+
393
+ libnetpbm10 libopenexr24 libwmf0.2-7 netpbm
394
+
395
+ Suggested packages:
396
+
397
+ imagemagick-doc autotrace cups-bsd | lpr | lprng enscript ffmpeg gimp gnuplot grads graphviz hp2xx html2ps libwmf-bin mplayer povray radiance texlive-base-bin transfig ufraw-batch libfftw3-bin
398
+
399
+ libfftw3-dev inkscape libjxr-tools libwmf0.2-7-gtk
400
+
401
+ The following NEW packages will be installed:
402
+
403
+ gsfonts imagemagick imagemagick-6-common imagemagick-6.q16 libdjvulibre-text libdjvulibre21 libfftw3-double3 libilmbase24 liblqr-1-0 libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra
404
+
405
+ libmagickwand-6.q16-6 libnetpbm10 libopenexr24 libwmf0.2-7 netpbm
406
+
407
+ 0 upgraded, 16 newly installed, 0 to remove and 59 not upgraded.
408
+
409
+ Need to get 2513 kB/8898 kB of archives.
410
+
411
+ After this operation, 28.0 MB of additional disk space will be used.
412
+
413
+ Do you want to continue? [Y/n] y
414
+
415
+ Ign:1 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 imagemagick-6-common all 8:6.9.10.23+dfsg-2.1ubuntu11.1
416
+
417
+ Ign:2 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 libmagickcore-6.q16-6 amd64 8:6.9.10.23+dfsg-2.1ubuntu11.1
418
+
419
+ Ign:3 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 libmagickwand-6.q16-6 amd64 8:6.9.10.23+dfsg-2.1ubuntu11.1
420
+
421
+ Ign:4 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 imagemagick-6.q16 amd64 8:6.9.10.23+dfsg-2.1ubuntu11.1
422
+
423
+ Ign:5 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 imagemagick amd64 8:6.9.10.23+dfsg-2.1ubuntu11.1
424
+
425
+ Ign:6 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 libmagickcore-6.q16-6-extra amd64 8:6.9.10.23+dfsg-2.1ubuntu11.1
426
+
427
+ Ign:1 http://archive.ubuntu.com/ubuntu focal-updates/universe amd64 imagemagick-6-common all 8:6.9.10.23+dfsg-2.1ubuntu11.1
428
+
429
+ Err:2 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 libmagickcore-6.q16-6 amd64 8:6.9.10.23+dfsg-2.1ubuntu11.1
430
+
431
+ 404 Not Found [IP: 2001:67c:1360:8001::23 80]
432
+
433
+ Err:3 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 libmagickwand-6.q16-6 amd64 8:6.9.10.23+dfsg-2.1ubuntu11.1
434
+
435
+ 404 Not Found [IP: 2001:67c:1360:8001::23 80]
436
+
437
+ Err:4 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 imagemagick-6.q16 amd64 8:6.9.10.23+dfsg-2.1ubuntu11.1
438
+
439
+ 404 Not Found [IP: 2001:67c:1360:8001::23 80]
440
+
441
+ Err:5 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 imagemagick amd64 8:6.9.10.23+dfsg-2.1ubuntu11.1
442
+
443
+ 404 Not Found [IP: 2001:67c:1360:8001::23 80]
444
+
445
+ Err:6 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 libmagickcore-6.q16-6-extra amd64 8:6.9.10.23+dfsg-2.1ubuntu11.1
446
+
447
+ 404 Not Found [IP: 2001:67c:1360:8001::23 80]
448
+
449
+ Ign:1 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 imagemagick-6-common all 8:6.9.10.23+dfsg-2.1ubuntu11.1
450
+
451
+ Err:1 http://security.ubuntu.com/ubuntu focal-updates/universe amd64 imagemagick-6-common all 8:6.9.10.23+dfsg-2.1ubuntu11.1
452
+
453
+ 404 Not Found [IP: 2001:67c:1360:8001::23 80]
454
+
455
+ E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/i/imagemagick/imagemagick-6-common_6.9.10.23+dfsg-2.1ubuntu11.1_all.deb 404 Not Found [IP: 2001:67c:1360:8001::23 80]
456
+
457
+ E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/i/imagemagick/libmagickcore-6.q16-6_6.9.10.23+dfsg-2.1ubuntu11.1_amd64.deb 404 Not Found [IP: 2001:67c:1360:8001::23 80]
458
+
459
+ E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/i/imagemagick/libmagickwand-6.q16-6_6.9.10.23+dfsg-2.1ubuntu11.1_amd64.deb 404 Not Found [IP: 2001:67c:1360:8001::23 80]
460
+
461
+ E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/i/imagemagick/imagemagick-6.q16_6.9.10.23+dfsg-2.1ubuntu11.1_amd64.deb 404 Not Found [IP: 2001:67c:1360:8001::23 80]
462
+
463
+ E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/i/imagemagick/imagemagick_6.9.10.23+dfsg-2.1ubuntu11.1_amd64.deb 404 Not Found [IP: 2001:67c:1360:8001::23 80]
464
+
465
+ E: Failed to fetch http://security.ubuntu.com/ubuntu/pool/universe/i/imagemagick/libmagickcore-6.q16-6-extra_6.9.10.23+dfsg-2.1ubuntu11.1_amd64.deb 404 Not Found [IP: 2001:67c:1360:8001::23 80]
466
+
467
+ E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
468
+
469
+
470
+
471
+ ```
472
+
473
+
474
+
475
+ 一方matplotlibに変えたら表示できました!ありがとうございます。
476
+
477
+ ただ本に記載されているのを毎回デバッグするのも大変なので出来れば原因把握したいのですが、何が考えられるでしょうか?