Python 3.5 64-bit、Win10 64bit
matplotlib 2.1.2、folium 0.10.1
import foliumwoを追加するとエラーが出るので、確認用のため必要のないコードは削除して行っています。
exe化後、ダブルクリックで実行できる。
import tkinter as tk
import matplotlib.pyplot as plt
year = [1980, 1985, 1990, 2000, 2010, 2018]
weight = [3, 15, 25, 55, 62, 58]
plt.plot(year, weight)
plt.show()
exe化後、ダブルクリックで実行できない
import tkinter as tk
import matplotlib.pyplot as plt
import folium
year = [1980, 1985, 1990, 2000, 2010, 2018]
weight = [3, 15, 25, 55, 62, 58]
plt.plot(year, weight)
plt.show()
コマンドから実行後のエラー内容
File "map.py", line 3, in <module>
File "<frozen importlib._bootstrap>", line 968, in _find_and_load
File "<frozen importlib._bootstrap>", line 957, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in load_unlocked
File "c:\users\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
exec(bytecode, module.dict)
File "site-packages\folium_init.py", line 5, in <module>
File "<frozen importlib._bootstrap>", line 968, in _find_and_load
File "<frozen importlib._bootstrap>", line 957, in find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in load_unlocked
File "c:\users\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
exec(bytecode, module.dict)
File "site-packages\branca_init.py", line 5, in <module>
File "<frozen importlib._bootstrap>", line 968, in find_and_load
File "<frozen importlib._bootstrap>", line 957, in find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 673, in load_unlocked
File "c:\users\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 627, in exec_module
exec(bytecode, module.dict)
File "site-packages\branca\colormap.py", line 29, in <module>
File "site-packages\pkg_resources_init.py", line 1151, in resource_stream
File "site-packages\pkg_resources_init.py", line 1398, in get_resource_stream
File "site-packages\pkg_resources_init.py", line 1401, in get_resource_string
File "site-packages\pkg_resources_init.py", line 1569, in _get
File "c:\users\appdata\local\programs\python\python35\lib\site-packages\PyInstaller\loader\pyimod03_importers.py", line 475, in get_data
with open(path, 'rb') as fp:
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Desktop\test\dist\map\branca_cnames.json'
[9844] Failed to execute script map
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/12/16 00:49
2019/12/16 02:12