Python2-无法运行pyinstaller

时间:2018-11-25 16:30:35

标签: python pip pyinstaller

我使用pip安装了pyinstaller

pip install pyinstaller

但是当我运行它时出现错误

Traceback (most recent call last):
File "/usr/local/bin/pyinstaller", line 7, in <module>
  from PyInstaller.__main__ import run
File "/usr/local/lib/python2.7/dist-packages/PyInstaller/__init__.py", line 66, in <module>
  __version__ = pkg_resources.get_distribution('PyInstaller').version
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 330, in get_distribution
  if isinstance(dist,Requirement): dist = get_provider(dist)
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 209, in get_provider
  return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 686, in require
  needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
  raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: PyInstaller

我无法弄清楚问题是什么,我尝试重新安装它。我已经搜索了该错误,但没有任何帮助的结果。

有人知道解决办法吗?

0 个答案:

没有答案