Skip to content

[Bug]: Windows one-click installer starts but does not open the web UI because pkg_resources is missing #2275

@rqhwh0-sudo

Description

@rqhwh0-sudo

Installation Method | 安装方法与平台

OneKeyInstall (一键安装脚本-windows)

Version | 版本

Latest | 最新版

OS | 操作系统

Windows

Describe the bug | 简述

Title

Windows one-click installer starts but does not open the web UI because pkg_resources is missing

Environment

  • OS: Windows
  • Project: OneKeyInstallerForWindowsAndMacOS
  • Entry script: Windows双击这里运行(推荐).bat
  • Date observed: 2026-04-27

Description

After double-clicking the recommended Windows .bat launcher, the web UI does not appear.

This is not just a browser auto-open problem. The app exits before the web server starts.

Steps to Reproduce

  1. Download and open OneKeyInstallerForWindowsAndMacOS
  2. Run Windows双击这里运行(推荐).bat
  3. Let the installer create/use the bundled environment
  4. Start gpt_academic

Expected Behavior

The local web service should start and the browser should open the UI automatically.

Actual Behavior

The process exits before launching the UI with:

ModuleNotFoundError: No module named 'pkg_resources'


### Screen Shot | 有帮助的截图

<img width="1235" height="554" alt="Image" src="https://github.com/user-attachments/assets/c1ac33fc-8941-45a6-8521-8b0b53994ec5" />

### Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions