Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
696 views
in Technique[技术] by (71.8m points)

python 3.x - pyinstaller not working with several warnings and errors

I am trying to turn my script into .exe file. When I use Pyinstaller I get several warnings and errors and it does not work:

  1. 193691 WARNING: Unable to find package for requirement greenlet from package gevent. 193691 WARNING: Unable to find package for requirement zope.event from package gevent. 193691 WARNING: Unable to find package for requirement zope.interface from package gevent. I installed gevent package but these warnings still appear

2)anaconda3libsite-packages umpy\__init__.py:138: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service I installed mkl-service package but this message still appears

3)ImportError: DLL load failed while importing _multiarray_umath: The module is not found. I am using Anaconda navigator and I dont have any additional virtual environment. I have numpy 1.19.2 and Python3.8.

  1. Finally I get PyInstaller.exceptions.ImportErrorWhenRunningHook: Failed to import module __PyInstaller_hooks_0_numpy_core required by hook for module anaconda3libsite-packagesPyInstallerhookshook-numpy.core.py. Please check whether module __PyInstaller_hooks_0_numpy_core actually exists and whether the hook is compatible with your version of anaconda3libsite-packagesPyInstallerhookshook-numpy.core.py:

I tried uninstalling anaconda and numpy and reinstalling it. I tried checking Path environment variable. all with no luck.

question from:https://stackoverflow.com/questions/65920287/pyinstaller-not-working-with-several-warnings-and-errors

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...