如何解决ModuleNotFoundError:在PyInstaller中没有名为'srsly.msgpack.util'的模块?

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

我正在尝试使用PyInstaller将python脚本转换为.exe。脚本将转换为exe文件,没有任何错误日志。

但是运行.exe文件时却得到ModuleNotFoundError:没有名为'srsly.msgpack.util'的模块

打开由PyInstaller和cx_Freeze生成的exe文件时出现问题。The Screenshot of the error is attached here.

曾尝试更新,卸载和重新安装软件包,但问题仍然存在。

版本:

  • Python:3.7
  • 操作系统:Windows 10
  • cx_Freeze:6.0
  • msgpack:0.6.2
  • PyInstaller:3.5
  • srsly:0.1.0
python python-3.x machine-learning nlp msgpack
1个回答
0
投票

这里提到的问题:https://pypi.python.org/pypi/msgpack/0.5.1

从msgpack-0.4或更早版本升级时,请勿进行pip install -U msgpack-python。 pip卸载msgpack-python; pip安装msgpack代替。

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