411 浏览
0

运行 pip3 install tqsdk -U -i https://pypi.tuna.tsinghua.edu.cn/simple –trusted-host=pypi.tuna.tsinghua.edu.cn

 报如下错,python版本是 3.9.6

ERROR: HTTP error 403 while getting https://pypi.tuna.tsinghua.edu.cn/packages/06/d2/53e8eda41c97ddd5977254ff8f8b9f5866f5d5092fe299158d3f9e5954a9/tqsdk-3.6.0-py3-none-any.whl (from https://pypi.tuna.tsinghua.edu.cn/simple/tqsdk/) (requires-python:>=3.6.4)

ERROR: Could not install requirement tqsdk from https://pypi.tuna.tsinghua.edu.cn/packages/06/d2/53e8eda41c97ddd5977254ff8f8b9f5866f5d5092fe299158d3f9e5954a9/tqsdk-3.6.0-py3-none-any.whl because of HTTP error 403 Client Error: Forbidden for url: https://pypi.tuna.tsinghua.edu.cn/packages/06/d2/53e8eda41c97ddd5977254ff8f8b9f5866f5d5092fe299158d3f9e5954a9/tqsdk-3.6.0-py3-none-any.whl for URL https://pypi.tuna.tsinghua.edu.cn/packages/06/d2/53e8eda41c97ddd5977254ff8f8b9f5866f5d5092fe299158d3f9e5954a9/tqsdk-3.6.0-py3-none-any.whl (from https://pypi.tuna.tsinghua.edu.cn/simple/tqsdk/) (requires-python:>=3.6.4)

verynb 发表新评论 2024年7月18日

重启电脑再运行命令就好了,估计是配置的东西没生效,重启才生效。