回答編集履歴
1
.specファイルの変更点について追記
test
CHANGED
@@ -5,3 +5,21 @@
|
|
5
5
|
を追加した後、
|
6
6
|
|
7
7
|
exe化した際に作られる「.spec」ファイルを[こちら](http://pyinstaller.47505.x6.nabble.com/PyInstaller-not-working-with-module-pycountry-td3064.html)のサイトを参考にしながら中身を書き換え、「PyInstaller --clean ファイル名.spec」を実行することで無事実行できました.
|
8
|
+
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
```
|
14
|
+
|
15
|
+
#.specファイル変更点
|
16
|
+
|
17
|
+
from PyInstaller.utils.hooks import copy_metadata #先頭に追加
|
18
|
+
|
19
|
+
|
20
|
+
|
21
|
+
datas = [],⇒ datas = copy_metadata("pycountry"), #変更前⇒変更後
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
```
|