667 浏览
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 的安装问题。

已回答的问题
0

既然tqsdk能稳定盈利,那可以先使用tqsdk

tqsdk2 的最简安装方式是

pip install tqsdk2

但是有些用户国内网络下载速度太慢会报超时

再换这个试试

pip install tqsdk2 –U –i http://mirrors.aliyun.com/pypi/simple/ –trusted-host=mirrors.aliyun.com

发表新评论

然后你是什么操作系统呢

操作系统是Win10

pip install tqsdk2 -U -i http://mirrors.aliyun.com/pypi/simple/ -trusted-host=mirrors.aliyun.com
Looking in indexes: http://mirrors.aliyun.com/pypi/simple/
WARNING: The repository located at mirrors.aliyun.com is not a trusted or secure host and is being ignored. If this repository is available via HTTPS we recommend you use HTTPS instead, otherwise you may silence this warning and allow it anyway with ‘–trusted-host mirrors.aliyun.com’.
ERROR: Could not find a version that satisfies the requirement tqsdk2 (from versions: none)
ERROR: No matching distribution found for tqsdk2

这个报错说明在这个操作系统的具体型号上还没有tqsdk2的包
那就先别着急安装吧

0

稳定亏损的路过。【笑哭】

已回答的问题
0

顺带问问2是不是有什么新的功能?升级成2,原来的程序用不用改?

发表新评论

tqsdk2 是用C++写的,速度比 tqsdk 快10倍。原来的程序基本不用改。