goldfishh / chatgpt-tool-hub

An open-source chatgpt tool ecosystem where you can combine tools with chatgpt and use natural language to do anything.
MIT License
1.22k stars 165 forks source link

无法安装 chatgpt-tool-hub,输出setuptools>=40.8.0 错误 #45

Closed CatcherX closed 1 year ago

CatcherX commented 1 year ago

前置确认

1. 网络能够访问openai接口
2. git pull 拉取最新代码
3. 执行pip install -r requirements.txt,检查依赖是否满足
4. 在已有 issue 中未搜索到类似问题

5. 注意,提issue前请确认用本项目test.py(参考README.md 快速开始配置)重试一次你的问题是否能复现

问题描述

无法安装依赖。
执行:

pip install -i https://pypi.python.org/simple chatgpt-tool-hub --proxy=127.0.0.1:7890

总是输出:
【 ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none)】

实际上已经安装了的:

pip list|findstr "setup" setuptools 67.7.2 (改为40.8.0 后重试上一操作,依然如此)

环境

CatcherX commented 1 year ago

`Installing build dependencies ... error error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> [8 lines of output] WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))': /simple/setuptools/ WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))': /simple/setuptools/ WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))': /simple/setuptools/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))': /simple/setuptools/ WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))': /simple/setuptools/ Could not fetch URL https://pypi.org/simple/setuptools/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='pypi.org', port=443): Max retries exceeded with url: /simple/setuptools/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)'))) - skipping ERROR: Could not find a version that satisfies the requirement setuptools>=40.8.0 (from versions: none) ERROR: No matching distribution found for setuptools>=40.8.0 [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: subprocess-exited-with-error

× pip subprocess to install build dependencies did not run successfully. │ exit code: 1 ╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.`

goldfishh commented 1 year ago

你好,你的网络环境是什么,可以试试:

pip install  --verbose -i https://pypi.python.org/simple --proxy=127.0.0.1:7890 --trusted-host pypi.python.org --trusted-host pypi.org chatgpt-tool-hub==0.4.3

或者

pip install  -U --verbose -i http://mirrors.aliyun.com/pypi/simple/ chatgpt-tool-hub==0.4.3
CatcherX commented 1 year ago

找到原因了,外部传参的代理,子进程获取不到。重新配置pip的全局代理后正常