【问题标题】:How do I fix error when installing pyInstaller安装pyInstaller时如何修复错误
【发布时间】:2019-12-29 13:07:51
【问题描述】:

我使用 v3.8.1。我正在尝试,但是当我输入时:

pip install pyinstaller

进入 shell,我得到这个错误信息:

 Traceback (most recent call last):
 File "c:\program files\python38\lib\runpy.py", line 193, in _run_module_as_main
   return _run_code(code, main_globals, None,
 File "c:\program files\python38\lib\runpy.py", line 86, in _run_code
   exec(code, run_globals)
 File "C:\Program Files\Python38\Scripts\pip.exe\__main__.py", line 9, in <module>
TypeError: 'module' object is not callable

【问题讨论】:

    标签: windows python install pyinstaller cmd python python-3.x cmd installation pyinstaller


    【解决方案1】:

    试试

    python3 -m pip install stdlib_list --user
    

    否则尝试卸载并重新安装 PIP

    【讨论】:

      【解决方案2】:

      尝试使用以下命令安装 python3 -m pip install &lt;library_name_here&gt; --user

      【讨论】:

        【解决方案3】:

        检查这个,使用:pip list

        • 安装了一个 setuptools 模块。如果没有:py -m pip install setuptools

          我记得最新版本是 44.0

        然后尝试安装,使用:py -m pip install PyInstaller

         Latest version is 3.5
        

        无论如何,PyInstaller 不支持 Python 3.8.x。

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2022-06-23
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2019-09-05
          相关资源
          最近更新 更多