試したこと
specファイルのhiddenimportsに追加してみましたが、下記のエラーが出るため、exe化出来ませんでした。
他にできることはありますでしょうか?
C:\Users\Owner\PycharmProjects\*****>pyinstaller main.spec --onefile 61 INFO: PyInstaller: 4.3 61 INFO: Python: 3.9.5 68 INFO: Platform: Windows-10-10.0.19044-SP0 69 INFO: UPX is not available. Traceback (most recent call last): File "c:\program files\python\python39\lib\runpy.py", line 197, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\program files\python\python39\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\Owner\AppData\Roaming\Python\Python39\Scripts\pyinstaller.exe\__main__.py", line 7, in <module> File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\PyInstaller\__main__.py", line 114, in run run_build(pyi_config, spec_file, **vars(args)) File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\PyInstaller\__main__.py", line 65, in run_build PyInstaller.building.build_main.main(pyi_config, spec_file, **kwargs) File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\PyInstaller\building\build_main.py", line 737, in main build(specfile, kw.get('distpath'), kw.get('workpath'), kw.get('clean_build')) File "C:\Users\Owner\AppData\Roaming\Python\Python39\site-packages\PyInstaller\building\build_main.py", line 684, in build exec(code, spec_namespace) File "main.spec", line 11, in <module> hiddenimports=[pymssql._mssql], NameError: name 'pymssql' is not defined
以下ライブラリ
C:\Users\Owner\PycharmProjects*****>pip list
Package Version
altgraph 0.17
async-generator 1.10
attrs 21.4.0
beautifulsoup4 4.9.3
bs4 0.0.1
cachetools 4.2.2
certifi 2021.5.30
cffi 1.15.0
chardet 4.0.0
click 8.0.1
colorama 0.4.4
configparser 5.0.2
crayons 0.4.0
cryptography 37.0.2
cycler 0.10.0
et-xmlfile 1.1.0
facebook-sdk 3.1.0
Flask 2.0.1
future 0.18.2
google-api-core 2.0.0
google-api-python-client 2.18.0
google-auth 2.0.1
google-auth-httplib2 0.1.0
google-auth-oauthlib 0.4.5
googleapis-common-protos 1.53.0
gspread 4.0.1
gspread-asyncio 1.5.3
gunicorn 20.1.0
h11 0.13.0
httplib2 0.19.1
idna 2.10
itsdangerous 2.0.1
jaconv 0.3
Jinja2 3.0.1
joblib 1.0.1
kiwisolver 1.3.1
line-bot-sdk 1.20.0
lxml 4.6.3
MarkupSafe 2.0.1
matplotlib 3.4.2
MouseInfo 0.1.3
msedge-selenium-tools 3.141.4
numpy 1.20.3
oauth2client 4.1.3
oauthlib 3.1.1
omise 0.11.0
openpyxl 3.0.7
outcome 1.1.0
pandas 1.2.4
pefile 2021.5.24
Pillow 8.2.0
pip 22.1.2
protobuf 3.17.3
pyasn1 0.4.8
pyasn1-modules 0.2.8
PyAutoGUI 0.9.53
pycparser 2.21
PyDrive 1.3.1
PyGetWindow 0.0.9
pyinstaller 4.3
pyinstaller-hooks-contrib 2021.1
PyMsgBox 1.0.9
pymssql 2.2.5
pyodbc 4.0.32
pyOpenSSL 22.0.0
pyparsing 2.4.7
pyperclip 1.8.2
pypiwin32 223
PyRect 0.2.0
PyScreeze 0.1.28
PySocks 1.7.1
python-dateutil 2.8.1
pytweening 1.0.4
pytz 2021.1
pywin32 302
pywin32-ctypes 0.2.0
PyYAML 5.4.1
requests 2.25.1
requests-oauthlib 1.3.0
rsa 4.7.2
scikit-learn 0.24.2
scipy 1.7.0
selenium 4.2.0
setuptools 56.0.0
six 1.16.0
sklearn 0.0
sniffio 1.2.0
sortedcontainers 2.4.0
soupsieve 2.2.1
stripe 2.58.0
threadpoolctl 2.1.0
trio 0.20.0
trio-websocket 0.9.2
tweepy 3.10.0
uritemplate 3.0.1
urllib3 1.26.9
webdriver-manager 3.4.2
Werkzeug 2.0.1
wsproto 1.1.0
xlrd 2.0.1
xlwings 0.25.1
あなたの回答
tips
プレビュー