4.61K 浏览
0

1、使用带 -i 参数的安装命令:

pip install tqsdk2 -i https://pypi.tuna.tsinghua.edu.cn/simple some-package -trusted-host=pypi.tuna.tsinghua.edu.cn

Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement tqsdk2 (from versions: none)
ERROR: No matching distribution found for tqsdk2

2、使用不带 -i 参数的安装命令:

pip install tqsdk2 https://pypi.tuna.tsinghua.edu.cn/simple some-package -trusted-host=pypi.tuna.tsinghua.edu.cn
Collecting https://pypi.tuna.tsinghua.edu.cn/simple
Downloading https://pypi.tuna.tsinghua.edu.cn/simple (16.6 MB)
|█ | 532 kB 14 kB/s eta 0:18:32ERROR: Exception:
Traceback (most recent call last):
File “d:\python39-32\lib\site-packages\pip\_vendor\urllib3\response.py”, line 438, in _error_catcher
yield

3、使用带 -U -i 参数的安装命令:

pip install tqsdk2 -U -i https://pypi.tuna.tsinghua.edu.cn/simple –trusted-host=pypi.tuna.tsinghua.edu.cn
Looking in indexes: https://pypi.tuna.tsinghua.edu.cn/simple
ERROR: Could not find a version that satisfies the requirement tqsdk2 (from versions: none)
ERROR: No matching distribution found for tqsdk2

换了好几个不同的国内镜像源,都出现了相同的错误提示,导致tqsdk2 还是始终无法安装。不知是什么原因?

望能尽快解决 tqsdk2 的安装问题。

ringo 已回答的问题 2021年6月9日