Looking in indexes: https://mirrors.cloud.tencent.com/pypi/simple/
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProxyError('Cannot connect to proxy.', NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x76641a066260>: Failed to establish a new connection: [Errno 111] Connection refused'))': /pypi/simple/cupy-cuda12x/
错误信息 ProxyError('Cannot connect to proxy.', ... Connection refused') 明确指出,pip 正在尝试通过一个代理服务器连接,但该代理服务器拒绝了连接。
# 1. 清除代理环境变量
unset http_proxy https_proxy HTTP_PROXY HTTPS_PROXY
# 2. 确认已清除(应该没有任何输出)
env | grep -i proxy
# 3. 重新运行你的安装命令
pip install cupy-cuda12x -i https://mirrors.cloud.tencent.com/pypi/simple/