'python' 不是内部或外部命令,也不是可运行的程序[BUG] 请填写标题
danyeye opened this issue · 2 comments
提交 issue 前,请先确认:
- [√] 我已看过 FAQ,此问题不在列表中
- [√] 我已看过其他 issue,他们不能解决我的问题
- [√] 我认为这不是 Mirai 或者 OpenAI 的 BUG
表现
报错:'python' 不是内部或外部命令,也不是可运行的程序。
已安装python3并且控制台能正常运行python脚本
运行环境:
- 操作系统:Windows10 企业版
- Docker: ?
- 项目版本:2.5.3
复现步骤
描述你是如何触发这个 BUG 的
- 运行chatgpt-installer.exe
预期行为
描述你认为正常情况下应该看见的情况
日志:[2024-02-24 16:14:31.056] [info] 请选择项目源:1. 官方源 2. 镜像源
[2024-02-24 16:14:31.058] [info] 一般项目源选择官方源即可,如果下不下来可以选择镜像源
1
[2024-02-24 16:14:32.546] [info] 已选择官方源
[2024-02-24 16:14:32.547] [info] 请选择PIP下载源:1. 官方源 2. 镜像源
[2024-02-24 16:14:32.547] [info] 一般项目源选择镜像源,如果需要更新的话则选择官方源
1
[2024-02-24 16:14:33.048] [info] 已选择官方源
[2024-02-24 16:14:35.241] [info] CHATGPT环境已存在
[2024-02-24 16:14:35.490] [info] 检查项目版本
Updating 757eac9..d61e547
error: Your local changes to the following files would be overwritten by merge:
requirements.txt
Please commit your changes or stash them before you merge.
Aborting
[2024-02-24 16:14:38.651] [info] 开始安装依赖
[2024-02-24 16:14:38.652] [info] 当前PIP镜像源是:https://pypi.org/simple/
系统找不到指定的路径。
Defaulting to user installation because normal site-packages is not writeable
Looking in indexes: https://pypi.org/simple/
Requirement already satisfied: graia-ariadne==0.11.7 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 2)) (0.11.7)
Requirement already satisfied: graiax-silkcoder in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 3)) (0.3.6)
Requirement already satisfied: python-telegram-bot==20.4 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 4)) (20.4)
Requirement already satisfied: discord.py in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 5)) (2.3.2)
Requirement already satisfied: wechatpy~=2.0.0a26 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 6)) (2.0.0a26)
Requirement already satisfied: revChatGPT~=6.8.6 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 9)) (6.8.6)
Requirement already satisfied: openai~=0.27.8 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 10)) (0.27.10)
Requirement already satisfied: EdgeGPT==0.13.2 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 11)) (0.13.2)
Requirement already satisfied: OpenAIAuth>=2.0.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 12)) (3.0.0)
Requirement already satisfied: BingImageCreator~=0.4.4 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 13)) (0.4.4)
Requirement already satisfied: poe-api==0.5.2 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 14)) (0.5.2)
Requirement already satisfied: tiktoken~=0.4.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 15)) (0.4.0)
Requirement already satisfied: azure-cognitiveservices-speech in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 18)) (1.35.0)
Requirement already satisfied: edge-tts in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 19)) (6.1.10)
Requirement already satisfied: toml~=0.10.2 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 22)) (0.10.2)
Requirement already satisfied: Pillow>=9.3.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 23)) (10.2.0)
Requirement already satisfied: tinydb~=4.8.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 24)) (4.8.0)
Requirement already satisfied: loguru~=0.7.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 25)) (0.7.2)
Requirement already satisfied: asyncio~=3.4.3 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 26)) (3.4.3)
Requirement already satisfied: pydantic in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 27)) (1.10.14)
Requirement already satisfied: markdown~=3.4.4 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 28)) (3.4.4)
Requirement already satisfied: python-markdown-math~=0.8 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 29)) (0.8)
Requirement already satisfied: pygments~=2.15.1 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 30)) (2.15.1)
Requirement already satisfied: imgkit~=1.2.3 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 31)) (1.2.3)
Requirement already satisfied: qrcode~=7.4.2 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 32)) (7.4.2)
Requirement already satisfied: aiohttp~=3.8.5 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 33)) (3.8.6)
Requirement already satisfied: urllib3~=2.0.4 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 34)) (2.0.7)
Requirement already satisfied: requests~=2.31.0 in c:\programdata\miniconda3\lib\site-packages (from -r requirements.txt (line 35)) (2.31.0)
Requirement already satisfied: uuid~=1.30 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 36)) (1.30)
Requirement already satisfied: aiocqhttp~=1.4.4 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 37)) (1.4.4)
Requirement already satisfied: tls-client in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 38)) (1.0.1)
Requirement already satisfied: python-dateutil~=2.8.2 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 39)) (2.8.2)
Requirement already satisfied: regex~=2023.6.3 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 40)) (2023.6.3)
Requirement already satisfied: httpx~=0.24.1 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 41)) (0.24.1)
Requirement already satisfied: Quart==0.17.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 42)) (0.17.0)
Requirement already satisfied: pydub~=0.25.1 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 43)) (0.25.1)
Requirement already satisfied: httpcore~=0.17.3 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from -r requirements.txt (line 44)) (0.17.3)
Requirement already satisfied: graia-broadcast~=0.23.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from graia-ariadne==0.11.7->-r requirements.txt (line 2)) (0.23.5)
Requirement already satisfied: typing-extensions<5.0,>=4.4 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from graia-ariadne==0.11.7->-r requirements.txt (line 2)) (4.9.0)
Requirement already satisfied: graia-amnesia~=0.7.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from graia-ariadne==0.11.7->-r requirements.txt (line 2)) (0.7.1)
Requirement already satisfied: launart<0.7,>=0.6.4 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from graia-ariadne==0.11.7->-r requirements.txt (line 2)) (0.6.4)
Requirement already satisfied: packaging>=23.0 in c:\programdata\miniconda3\lib\site-packages (from graia-ariadne==0.11.7->-r requirements.txt (line 2)) (23.1)
Requirement already satisfied: creart~=0.3.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from graia-ariadne==0.11.7->-r requirements.txt (line 2)) (0.3.0)
Requirement already satisfied: websockets in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from EdgeGPT==0.13.2->-r requirements.txt (line 11)) (12.0)
Requirement already satisfied: rich in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from EdgeGPT==0.13.2->-r requirements.txt (line 11)) (13.7.0)
Requirement already satisfied: certifi in c:\programdata\miniconda3\lib\site-packages (from EdgeGPT==0.13.2->-r requirements.txt (line 11)) (2023.11.17)
Requirement already satisfied: prompt-toolkit in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from EdgeGPT==0.13.2->-r requirements.txt (line 11)) (3.0.43)
Requirement already satisfied: python-socks in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from poe-api==0.5.2->-r requirements.txt (line 14)) (2.4.4)
Requirement already satisfied: quickjs in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from poe-api==0.5.2->-r requirements.txt (line 14)) (1.19.4)
Requirement already satisfied: websocket-client in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from poe-api==0.5.2->-r requirements.txt (line 14)) (1.7.0)
Requirement already satisfied: aiofiles in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from Quart==0.17.0->-r requirements.txt (line 42)) (23.2.1)
Requirement already satisfied: blinker in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from Quart==0.17.0->-r requirements.txt (line 42)) (1.7.0)
Requirement already satisfied: click in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from Quart==0.17.0->-r requirements.txt (line 42)) (8.1.7)
Requirement already satisfied: hypercorn>=0.11.2 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from Quart==0.17.0->-r requirements.txt (line 42)) (0.16.0)
Requirement already satisfied: itsdangerous in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from Quart==0.17.0->-r requirements.txt (line 42)) (2.1.2)
Requirement already satisfied: jinja2 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from Quart==0.17.0->-r requirements.txt (line 42)) (3.1.3)
Requirement already satisfied: markupsafe in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from Quart==0.17.0->-r requirements.txt (line 42)) (2.1.5)
Requirement already satisfied: werkzeug>=2.0.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from Quart==0.17.0->-r requirements.txt (line 42)) (3.0.1)
Requirement already satisfied: cryptography>=3.1 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from wechatpy~=2.0.0a26->-r requirements.txt (line 6)) (42.0.5)
Requirement already satisfied: optionaldict>=0.1.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from wechatpy~=2.0.0a26->-r requirements.txt (line 6)) (0.1.2)
Requirement already satisfied: requests-pkcs12<2.0,>=1.7 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from wechatpy~=2.0.0a26->-r requirements.txt (line 6)) (1.24)
Requirement already satisfied: xmltodict>=0.11.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from wechatpy~=2.0.0a26->-r requirements.txt (line 6)) (0.13.0)
Requirement already satisfied: tqdm in c:\programdata\miniconda3\lib\site-packages (from openai~=0.27.8->-r requirements.txt (line 10)) (4.65.0)
Requirement already satisfied: colorama>=0.3.4 in c:\programdata\miniconda3\lib\site-packages (from loguru~=0.7.0->-r requirements.txt (line 25)) (0.4.6)
Requirement already satisfied: win32-setctime>=1.0.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from loguru~=0.7.0->-r requirements.txt (line 25)) (1.1.0)
Requirement already satisfied: six in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from imgkit~=1.2.3->-r requirements.txt (line 31)) (1.16.0)
Requirement already satisfied: pypng in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from qrcode~=7.4.2->-r requirements.txt (line 32)) (0.20220715.0)
Requirement already satisfied: attrs>=17.3.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from aiohttp~=3.8.5->-r requirements.txt (line 33)) (23.2.0)
Requirement already satisfied: charset-normalizer<4.0,>=2.0 in c:\programdata\miniconda3\lib\site-packages (from aiohttp~=3.8.5->-r requirements.txt (line 33)) (2.0.4)
Requirement already satisfied: multidict<7.0,>=4.5 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from aiohttp~=3.8.5->-r requirements.txt (line 33)) (6.0.5)
Requirement already satisfied: async-timeout<5.0,>=4.0.0a3 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from aiohttp~=3.8.5->-r requirements.txt (line 33)) (4.0.3)
Requirement already satisfied: yarl<2.0,>=1.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from aiohttp~=3.8.5->-r requirements.txt (line 33)) (1.9.4)
Requirement already satisfied: frozenlist>=1.1.1 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from aiohttp~=3.8.5->-r requirements.txt (line 33)) (1.4.1)
Requirement already satisfied: aiosignal>=1.1.2 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from aiohttp~=3.8.5->-r requirements.txt (line 33)) (1.3.1)
Requirement already satisfied: idna<4,>=2.5 in c:\programdata\miniconda3\lib\site-packages (from requests~=2.31.0->-r requirements.txt (line 35)) (3.4)
Requirement already satisfied: sniffio in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from httpx~=0.24.1->-r requirements.txt (line 41)) (1.3.0)
Requirement already satisfied: h11<0.15,>=0.13 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from httpcore~=0.17.3->-r requirements.txt (line 44)) (0.14.0)
Requirement already satisfied: anyio<5.0,>=3.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from httpcore~=0.17.3->-r requirements.txt (line 44)) (4.3.0)
Requirement already satisfied: importlib-metadata>=3.6 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from creart~=0.3.0->graia-ariadne==0.11.7->-r requirements.txt (line 2)) (7.0.1)
Requirement already satisfied: cffi>=1.12 in c:\programdata\miniconda3\lib\site-packages (from cryptography>=3.1->wechatpy~=2.0.0a26->-r requirements.txt (line 6)) (1.16.0)
Requirement already satisfied: statv>=0.2.2 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from graia-amnesia~=0.7.0->graia-ariadne==0.11.7->-r requirements.txt (line 2)) (0.3.2)
Requirement already satisfied: socksio==1.* in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from httpx[socks]>=0.24.0->EdgeGPT==0.13.2->-r requirements.txt (line 11)) (1.0.0)
Requirement already satisfied: h2>=3.1.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from hypercorn>=0.11.2->Quart==0.17.0->-r requirements.txt (line 42)) (4.1.0)
Requirement already satisfied: priority in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from hypercorn>=0.11.2->Quart==0.17.0->-r requirements.txt (line 42)) (2.0.0)
Requirement already satisfied: wsproto>=0.14.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from hypercorn>=0.11.2->Quart==0.17.0->-r requirements.txt (line 42)) (1.2.0)
Requirement already satisfied: wcwidth in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from prompt-toolkit->EdgeGPT==0.13.2->-r requirements.txt (line 11)) (0.2.13)
Requirement already satisfied: PySocks!=1.5.7,>=1.5.6 in c:\programdata\miniconda3\lib\site-packages (from requests[socks]->poe-api==0.5.2->-r requirements.txt (line 14)) (1.7.1)
Requirement already satisfied: markdown-it-py>=2.2.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from rich->EdgeGPT==0.13.2->-r requirements.txt (line 11)) (3.0.0)
Requirement already satisfied: pycparser in c:\programdata\miniconda3\lib\site-packages (from cffi>=1.12->cryptography>=3.1->wechatpy~=2.0.0a26->-r requirements.txt (line 6)) (2.21)
Requirement already satisfied: hyperframe<7,>=6.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from h2>=3.1.0->hypercorn>=0.11.2->Quart==0.17.0->-r requirements.txt (line 42)) (6.0.1)
Requirement already satisfied: hpack<5,>=4.0 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from h2>=3.1.0->hypercorn>=0.11.2->Quart==0.17.0->-r requirements.txt (line 42)) (4.0.0)
Requirement already satisfied: zipp>=0.5 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from importlib-metadata>=3.6->creart~=0.3.0->graia-ariadne==0.11.7->-r requirements.txt (line 2)) (3.17.0)
Requirement already satisfied: mdurl~=0.1 in c:\users\阿蛋\appdata\roaming\python\python311\site-packages (from markdown-it-py>=2.2.0->rich->EdgeGPT==0.13.2->-r requirements.txt (line 11)) (0.1.2)
[2024-02-24 16:14:43.584] [info] 启动程序
系统找不到指定的路径。
'python' 不是内部或外部命令,也不是可运行的程序
或批处理文件。
[2024-02-24 16:14:43.930] [info] 按任意键退出...
其他内容
此处填写其他内容,没有可跳过
路径里面最好不要带中文,也有可能是你之前装过python,环境变量冲突了,实在不行重装吧。你用的这个版本也不太行,建议用2,5.2
windwos建议手动安装conda然后部署,一键安装包exe程序bug很多的,不推荐