ERROR: HTTP error 403 while getting https://pypi.tuna.tsinghua.edu.cn/packages/67/f2/e8be5599634ff063fa2c59b7b51636815909d5140a26df9f02ce5d99b81a/tensorboard-2.13.0-py3-none-any.whl#sha256=ab69961ebddbddc83f5fa2ff9233572bdad5b883778c35e4fe94bf1798bd8481 (from https://pypi.tuna.tsinghua.edu.cn/simple/tensorboard/) (requires-python:>=3.8)
ERROR: Could not install requirement tensorboard>=2.9.1 from https://pypi.tuna.tsinghua.edu.cn/packages/67/f2/e8be5599634ff063fa2c59b7b51636815909d5140a26df9f02ce5d99b81a/tensorboard-2.13.0-py3-none-any.whl#sha256=ab69961ebddbddc83f5fa2ff9233572bdad5b883778c35e4fe94bf1798bd8481 (from pytorch-lightning) because of HTTP error 403 Client Error: Forbidden for url: https://pypi.tuna.tsinghua.edu.cn/packages/67/f2/e8be5599634ff063fa2c59b7b51636815909d5140a26df9f02ce5d99b81a/tensorboard-2.13.0-py3-none-any.whl for URL https://pypi.tuna.tsinghua.edu.cn/packages/67/f2/e8be5599634ff063fa2c59b7b51636815909d5140a26df9f02ce5d99b81a/tensorboard-2.13.0-py3-none-any.whl#sha256=ab69961ebddbddc83f5fa2ff9233572bdad5b883778c35e4fe94bf1798bd8481 (from https://pypi.tuna.tsinghua.edu.cn/simple/tensorboard/) (requires-python:>=3.8)
这个错误提示表明在安装pytorch和open_clip_torch时,程序尝试从清华大学镜像站下载tensorboard库,但是下载过程中出现了HTTP 403错误,导致安装失败。
这个问题可能是由于网络问题或镜像站问题导致的,您可以尝试更换其他的镜像站或直接从官方源下载安装包。以下是一些解决方法:
更换镜像站
您可以尝试更换其他的镜像站来下载tensorboard库。例如,可以使用阿里云的镜像站:
Copy
pip install tensorboard -i https://mirrors.aliyun.com/pypi/simple/
或者使用清华大学的镜像站并在URL中添加用户代理:
Copy
pip install tensorboard -i https://pypi.tuna.tsinghua.edu.cn/simple/ --user-agent="Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 SE 2.X MetaSr 1.0"
直接从官方源下载安装包
您可以尝试从官方源下载tensorboard库的安装包,并使用本地安装包进行安装。例如,在Linux系统中,可以执行以下命令:
apache
Copy
wget https://files.pythonhosted.org/packages/34/df/3bba99f9d9a2e4c5a9d0ed16c7b5c4ef2aa6a41c6a1e5e2ff0f4c4e4f7d4/tensorboard-2.13.0-py3-none-any.whl
pip install tensorboard-2.13.0-py3-none-any.whl
需要注意的是,在使用这个方法时,您需要手动下载适用于您的操作系统和Python版本的安装包,并确保安装包的版本与您的环境相匹配。