pyinstaller打包python程序的常见问题

使用pyinstaller打包python程序时遇到的问题记录,问题已全部解决。

解决方法详见 https://guangmujun.cn/archives/168

  1. shapely库相关

    问题:

    Unable to find "e:\github\forexe\venv\lib\site-packages\shapely\DLLs\geos.dll" when adding binary and data files.
    
  2. pyproj库相关

    问题:

    ModuleNotFoundError: No module named 'pyproj._datadir'
    
  3. numpy相关

    问题:

    ModuleNotFoundError: No module named 'numpy.random.common'
    
  4. sklearn相关

    问题:

    ModuleNotFoundError: No module named 'sklearn.utils._cython_blas'
    
  5. geopandas库相关

    问题:

    File "site-packages\geopandas\datasets\__init__.py", line 7, in <module>
    StopIteration
    [6764] Failed to execute script application
    

你可能感兴趣的:(python)