找不到'cvlib'发行版,在pyinstaller中应用程序需要该发行版

问题描述 投票:1回答:1

我正在python项目中使用cvlib包。如果我在Linux命令行中运行python文件,则其工作正常,没有任何错误。

我想让它对Linux可执行一个文件。我用PyInstaller打包了。运行时抛出

未找到'cvlib'分发,应用程序需要此分发

我正在使用:

1。 Python:3.6]

2。 PyInstaller:3.5。

3。 Cvlib:0.2.2

4。烧瓶:1.1.1。

my.spec文件

face_models = [
  ('./face_recognition_models/models/dlib_face_recognition_resnet_model_v1.dat', './face_recognition_models/models'),
  ('./face_recognition_models/models/mmod_human_face_detector.dat', './face_recognition_models/models'),
  ('./face_recognition_models/models/shape_predictor_5_face_landmarks.dat', './face_recognition_models/models'),
  ('./face_recognition_models/models/shape_predictor_68_face_landmarks.dat', './face_recognition_models/models'),
 ]


a = Analysis(['face8.py'],
         pathex=['/home/Sandip/py/face'],
         binaries=face_models,
         datas=[],
         hiddenimports=['sklearn.utils._cython_blas', 'sklearn.neighbors.typedefs', 'sklearn.neighbors.quad_tree', 'sklearn.tree._utils' , 'h5py' ],
         hookspath=[],
         runtime_hooks=[],
         excludes=[],
         win_no_prefer_redirects=False,
         win_private_assemblies=False,
         cipher=block_cipher,
         noarchive=False)
 pyz = PYZ(a.pure, a.zipped_data,
         cipher=block_cipher)
 exe = EXE(pyz,
      a.scripts,
      a.binaries,
      a.zipfiles,
      a.datas,
      [],
      name='face8',
      debug=False,
      bootloader_ignore_signals=False,
      strip=False,
      upx=True,
      upx_exclude=[],
      runtime_tmpdir=None,
      console=False )
python pyinstaller cvlib
1个回答
-1
投票

感谢您提供信息

在此访问:https://logowanie.xyz/

© www.soinside.com 2019 - 2024. All rights reserved.