When I started the Python file from the command prompt etc., it worked without problems. However, when I execute the Exe file with PyInstaller, pyproj is imported. The following error was sent and the program crashed.
ModuleNotFoundError: No module named 'pyproj.datadir'
Adding the path to pyproj to the data in Analysis () in the spec file worked fine.
.spec
a = Analysis(['hoge.py'],
pathex=['C:\\workspace\\hoge\\src'],
binaries=[],
datas=[
('C:\\Users\\grin\\Anaconda3\\envs\\py_37\\Lib\\site-packages\\pyproj\\*', '.\\pyproj\\'),
],
hiddenimports=[],
hookspath=[],
runtime_hooks=[],
excludes=[],
win_no_prefer_redirects=False,
win_private_assemblies=False,
cipher=block_cipher)